Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to pass function as a optional props in typescript type

props.onSaveCourse?.('abc', someDate)
props.onSaveGoal?.('abc')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #function #optional #props #typescript #type
ADD COMMENT
Topic
Name
9+9 =