Use ‘unknown’ instead of ‘any’ in TypeScript (Try / Catch error handling)

Published: 20 July 2023
on channel: ByteGrad
25,987
1k

👉 NEW React & Next.js Course: https://bytegrad.com/courses/professi...
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/professi...
👉 Professional JavaScript Course: https://bytegrad.com/courses/professi...
👉 Professional CSS Course: https://bytegrad.com/courses/professi...

👉 Discord: all my courses have a private Discord where I actively participate
🔔 Email newsletter (BIG update soon): https://email.bytegrad.com

⏱️ Timestamps:
0:00 data: unknown
1:06 ts-reset
1:36 error: unknown
4:59 Handle unknown
8:03 Utility function

#typescript #typescripttutorial


Watch video Use ‘unknown’ instead of ‘any’ in TypeScript (Try / Catch error handling) online without registration, duration hours minute second in high quality. This video was added by user ByteGrad 20 July 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 25,987 once and liked it 1 thousand people.