
Sign up to save your podcasts
Or
In this episode of Syntax, Scott and Wes continue their discussion of TypeScript Fundamentals with a deeper diver into more advanced use cases.
Deque - SponsorDeque’s axe DevTools makes accessibility testing easy and doesn’t require special expertise. Find and fix issues while you code. Get started with a free trial of axe DevTools Pro at deque.com/syntax. No credit card needed.
LogRocket - SponsorLogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax.
Mux - SponsorMux Video is an API-first platform that makes it easy for any developer to build beautiful video. Powered by data and designed by video experts, your video will work perfectly on every device, every time. Mux Video handles storage, encoding, and delivery so you can focus on building your product. Live streaming is just as easy and Mux will scale with you as you grow, whether you’re serving a few dozen streams or a few million. Visit mux.com/syntax.
Show Notes Deep end stuff03:30 - any vs unknown
06:20 - never
13:25 - Type generation
17:20 - TypeScript generics (variables)
21:48 - Promises / Async + Await
29:48 - Type assertion (type casting)
34:14 - TypeScript without TypeScript (JSDoc / TSDoc)
40:08 - Interfaces vs Types
44:27 - Interface or Types
44:50 - any vs unknown
46:52 - Any (No Implicit or Implicit Allowed)
48:31 - Return types (Implicit or Explicit)
50:49 - Compile (TSC, Strip TS)
52:38 - Type Assertion (as or )
53:09 - Arrays (Dog[] or Array)
54:02 - Assert or Generic (if both work)
4.9
966966 ratings
In this episode of Syntax, Scott and Wes continue their discussion of TypeScript Fundamentals with a deeper diver into more advanced use cases.
Deque - SponsorDeque’s axe DevTools makes accessibility testing easy and doesn’t require special expertise. Find and fix issues while you code. Get started with a free trial of axe DevTools Pro at deque.com/syntax. No credit card needed.
LogRocket - SponsorLogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax.
Mux - SponsorMux Video is an API-first platform that makes it easy for any developer to build beautiful video. Powered by data and designed by video experts, your video will work perfectly on every device, every time. Mux Video handles storage, encoding, and delivery so you can focus on building your product. Live streaming is just as easy and Mux will scale with you as you grow, whether you’re serving a few dozen streams or a few million. Visit mux.com/syntax.
Show Notes Deep end stuff03:30 - any vs unknown
06:20 - never
13:25 - Type generation
17:20 - TypeScript generics (variables)
21:48 - Promises / Async + Await
29:48 - Type assertion (type casting)
34:14 - TypeScript without TypeScript (JSDoc / TSDoc)
40:08 - Interfaces vs Types
44:27 - Interface or Types
44:50 - any vs unknown
46:52 - Any (No Implicit or Implicit Allowed)
48:31 - Return types (Implicit or Explicit)
50:49 - Compile (TSC, Strip TS)
52:38 - Type Assertion (as or )
53:09 - Arrays (Dog[] or Array)
54:02 - Assert or Generic (if both work)
377 Listeners
265 Listeners
245 Listeners
285 Listeners
40 Listeners
586 Listeners
629 Listeners
275 Listeners
213 Listeners
484 Listeners
186 Listeners
63 Listeners
136 Listeners
58 Listeners
52 Listeners