Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

How to define an Tuple type in typescript

let myTuple:[ string, number ] = [ "hello", 20 ];
Source by devdojo.com #
 
PREVIOUS NEXT
Tagged: #How #define #Tuple #type #typescript
ADD COMMENT
Topic
Name
4+9 =