No BS TS #2 - Typescript Functions
Let's dig into defining Typescript functions and cover the #1 misconception that programmers have about Typescript.
00:00 Introduction
00:35 Defining functions
01:11 Default exports
01:37 Default imports
02:35 What is "any"?
03:00 Typing parameters
03:40 Typing return values
04:10 Const functions
04:55 Destructured imports
05:24 Default parameters
05:50 Union types
06:46 Void functions
07:36 Promise functions
08:24 Rest parameters
09:23 #1 Misconception about Typescript
14:24 Outroduction
Code: https://github.com/jherr/no-bs-ts/tree/master/episode-2
Viewer recommended article on why default exports are bad: https://basarat.gitbook.io/typescript/main-1/defaultisbad
If you liked this video, buy me a coffee! https://www.buymeacoffee.com/bluecollarcoder
Hope you folks enjoy this!
👉 If you enjoy this video, please like it and share it.
👉 Don't forget to subscribe to this channel for more updates: https://bit.ly/2E7drfJ
👉 Weekly free newsletter: https://www.jackherrington.com/subscribe/
👉 Discord server signup: https://discord.gg/ddMZFtTDa5
💢 Watch our other videos:
💟 Hacking your Github contribution graph: https://youtu.be/_ZQSPYDlk3U
💟 More Typescript videos: https://www.youtube.com/playlist?list=PLNqp92_EXZBIKO8lqN3089jgZUi-FUFXX
Thank you for watching this video, click the "SUBSCRIBE" button to stay connected with this channel.
#typescript #NoBSTS
Видео No BS TS #2 - Typescript Functions канала Jack Herrington
00:00 Introduction
00:35 Defining functions
01:11 Default exports
01:37 Default imports
02:35 What is "any"?
03:00 Typing parameters
03:40 Typing return values
04:10 Const functions
04:55 Destructured imports
05:24 Default parameters
05:50 Union types
06:46 Void functions
07:36 Promise functions
08:24 Rest parameters
09:23 #1 Misconception about Typescript
14:24 Outroduction
Code: https://github.com/jherr/no-bs-ts/tree/master/episode-2
Viewer recommended article on why default exports are bad: https://basarat.gitbook.io/typescript/main-1/defaultisbad
If you liked this video, buy me a coffee! https://www.buymeacoffee.com/bluecollarcoder
Hope you folks enjoy this!
👉 If you enjoy this video, please like it and share it.
👉 Don't forget to subscribe to this channel for more updates: https://bit.ly/2E7drfJ
👉 Weekly free newsletter: https://www.jackherrington.com/subscribe/
👉 Discord server signup: https://discord.gg/ddMZFtTDa5
💢 Watch our other videos:
💟 Hacking your Github contribution graph: https://youtu.be/_ZQSPYDlk3U
💟 More Typescript videos: https://www.youtube.com/playlist?list=PLNqp92_EXZBIKO8lqN3089jgZUi-FUFXX
Thank you for watching this video, click the "SUBSCRIBE" button to stay connected with this channel.
#typescript #NoBSTS
Видео No BS TS #2 - Typescript Functions канала Jack Herrington
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
No BS TS #3 - Typescript Functions with FunctionsNo BS TS #1 - Typescript Setup & Everyday TypesNo BS TS #4 - Function Overloading in TypescriptMicro-Frontends: What, why and howTypeScript Interfaces vs TypesHow to use TypeScript with React... But should you?What is Preact? (the best small React alternative)This is NOT 3D SOFTWARE? | How I Create ''Microworlds''Object Oriented vs Functional Programming with TypeScriptMusic Software & Bad Interface Design: Avid’s SibeliusCommon React Mistakes: useEffect - Part 1No BS TS #5 - Optionals in TypescriptNo BS TS - Challenge #1Five Essential Design Patterns in TypescriptNo BS TS #11 - Enums and Literal Types in TypescriptNo BS TS #14 - Mapped Types in TypescriptNo BS TS #15 - Readonly and Static in Typescript ClassesTypescript for React Components From Beginners to MastersNo BS TS #18 - Conditional Types in Typescript