Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript declare dictionary type

var persons: { [id: string] : string; } = {};
persons["p1"] = { firstName: "F1", lastName: "L1" };
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #declare #dictionary #type
ADD COMMENT
Topic
Name
7+5 =