Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

difference between never and void in typescript

never : for typescript function that will never return something, 
can be always running or throw some error (doesn’t have time to return).
 
void: for Typescript function that will return nothing.
any: for Typescript function where you are not sure of it returns.
 
PREVIOUS NEXT
Tagged: #difference #void #typescript
ADD COMMENT
Topic
Name
5+9 =