MENU

Fun & Interesting

TypeScript Generics are EASY once you know this

ByteGrad 158,283 lฦฐแปฃt xem 1 year ago
Video Not Working? Fix It Now

๐Ÿ‘‰ NEW React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs
Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship).
๐Ÿ‘‰ Add authentication to your app FAST: https://bit.ly/3QOe1Bh

๐Ÿ‘‰ NEW React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs
๐Ÿ‘‰ Professional JavaScript Course: https://bytegrad.com/courses/professional-javascript
๐Ÿ‘‰ Professional CSS Course: https://bytegrad.com/courses/professional-css

๐Ÿ‘‰ Discord: all my courses have a private Discord where I actively participate
๐Ÿ”” Email newsletter (BIG update soon): https://email.bytegrad.com

โฑ๏ธ Timestamps:
0:00 Example 1
4:11 Example 2
6:58 Example 3 (multiple type parameters)
9:23 React example
13:31 Extracting type
15:25 State setter function
17:08 'extends'
18:54 Inference vs specifying yourself

#webdevelopment #programming #coding

Note that my videos may contain mistakes. Always verify yourself that your code is safe and does what you want it to do for your specific situation. You agree by watching the videos that you are solely responsible for any mistakes in your code.

This channel and all its content is owned & operated by ByteGrad Sp. z o.o. with Tax ID: PL6762676561 .
.
TOP resource to LEARN AI for Developers - https://datacamp.pxf.io/RGyxrR (paid sponsorship & ByteGrad Sp. z o.o. gets commission)

Comment