Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript interface optional


 /*age is optional in PersonProps*/
interface PersonProps{
age?: number; 
name: string;

}
Source by www.logicbig.com #
 
PREVIOUS NEXT
Tagged: #typescript #interface #optional
ADD COMMENT
Topic
Name
2+2 =