8 TypeScript Tips To Expand Your Mind (and improve your code) @mattpocockuk
8 TypeScript Tips To Expand Your Mind (and improve your code)  @mattpocockuk
Uploaded February 2024 | Updated September 2026, 1 week ago
00:00 Intro
00:33 ReactNode vs Element
01:26 using for Unit Tests
03:08 Aliasing any to TODO
03:47 Generic functions vs any
04:56 Const Type Parameters
06:11 NoInfer
08:06 (typeof array)[number]
09:09 ElementRef

My PR's to React: github.com/DefinitelyTyped/DefinitelyTyped/pulls?q=is%3Apr+author%3Amattpocock+is%3Aclosed+

Become a TypeScript Wizard with my free beginners TypeScript Course:

totaltypescript.com/tutorials/beginners-typescript

Follow Matt on Twitter

twitter.com/mattpocockuk

Join the Discord:

mattpocock.com/discord
8 TypeScript Tips To Expand Your Mind (and improve your code)This proposal makes JavaScript way more randomSUPER nice pattern for React props #typescript #reactValue objects are SO underused in TSParameters is SO helpfulNode 23 fixes the worst thing about JavaScriptEffect: the unreadable library that captured my heartDont know which model to choose? *taps the graph*Typing createContext in React #typescript #reactReact Aria Components 1.0Application vs Library TS #typescriptIm thinking about changing my most popular skill
Matt Pocock |

8 TypeScript Tips To Expand Your Mind (and improve your code)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER