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

Code Example 1

enum Color {Red, Green, Blue = 4}
let c: Color = Color.Green

Learn ReactJs, React Native from akashmittal.com