typescript types cheat sheet code example
Example 1: typescript cheat sheet 2020
let len: number = (input as string).length
let len: number = (<string> input).length /* not allowed in JSX */
Example 2: typescript cheatsheet
enum Color {Red, Green, Blue = 4}
let c: Color = Color.Green