Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript type specific numbers

type MyRange = 5|6|7|8|9|10

let myVar:MyRange = 4; // oops, error :)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #type #specific #numbers
ADD COMMENT
Topic
Name
6+5 =