Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

pass generic type to arow function typescript

const foo = <T>(x: T) => x; // ERROR : unclosed `T` tag
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #generic #type #arow #function #typescript
ADD COMMENT
Topic
Name
9+1 =