Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript interface optional


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

}
 
PREVIOUS NEXT
Tagged: #typescript #interface #optional
ADD COMMENT
Topic
Name
4+4 =