Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

requierd one of two attribute in obj js ts

{ title: string, icon: string, component: number, click?: number} 
| { title: string, icon: string, click: number, component?: number}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #requierd #attribute #obj #js #ts
ADD COMMENT
Topic
Name
1+9 =