Back to Browse

TypeScript Plugged In: NoInfer

195 views
Premiered Apr 2, 2024
4:37

https://ducin.dev, #typescript playground: https://tsplay.dev/w2gM9N Sometimes you don't want a type parameter to be inferred from all positions used within e.g. a function signature. If you want a given type parameter occurrence to conform to what other occurrences infer - you might need the new NoInfer type. 00:00 intro 00:10 option 1 - hardcode type of the value 00:25 option 2 - infer type parameters according to function calls 01:49 const assertion 02:56 const type parameter 03:30 NoInfer

Download

0 formats

No download links available.

TypeScript Plugged In: NoInfer | NatokHD