Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Typescript object annotation

let data : {name : string, getName: (name : string) => string } 
= {
name : "Kamyab", 
getName : (name) => { return name }
};
Source by www.typescriptlang.org #
 
PREVIOUS NEXT
Tagged: #Typescript #object #annotation
ADD COMMENT
Topic
Name
6+5 =