typescript lambda type parameter

Solutions on MaxInterview for typescript lambda type parameter by the best coders in the world

showing results for - "typescript lambda type parameter"
Lukas
22 Jan 2020
1// For .ts (not .tsx)
2const func = <T>() => { 
3}
4
5// For react Typescript (.tsx)
6const func = <T,>() => {
7}
8
9// For older versions of react typescript
10const func = <T extends unknown>() => {
11  
12}