Jenis TypeScript Nomor spesifik
type MyRange = 5|6|7|8|9|10
let myVar:MyRange = 4; // oops, error :)
Helpless Hippopotamus
type MyRange = 5|6|7|8|9|10
let myVar:MyRange = 4; // oops, error :)