Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript array of mixed types

const foo: (string|number)[] = [ 1, "message" ];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #array #mixed #types
ADD COMMENT
Topic
Name
5+2 =