Check out example codes for "declare enum in type script". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com