Check out example codes for "typescript enum value to enum". It will help you in understanding the concepts better.

Code Example 1

enum Number {
  One,
  Two
}  

const numberOne: Number = "One" as Number;
const otherNumberOne: Number = Number.One;

const stringOne = Number[Number.One];

Code Example 2

enum PrintMedia {
  Newspaper = 1,
  Newsletter,
  Magazine,
  Book
}

Code Example 3

enum Response {
    No = 0,
    Yes = 1,
}

function respond(recipient: string, message: Response): void {
    // ...
}

respond("Princess Caroline", Response.Yes)

Learn ReactJs, React Native from akashmittal.com