Examples and demo's on the training TypeScript by internationally acclaimed trainer Peter Kassenaar.
For more information, or training at your location, please contact info@kassenaar.com
Some links with extra information we discovered during the training. I found them useful:
- General repo with examples and source code: https://github.com/PeterKassenaar/voorbeeldenTypeScript
- Understanding the exclamation mark in Typescript: https://blog.logrocket.com/understanding-exclamation-mark-typescript/
- Nice article on user-defined type guards: https://bobbyhadz.com/blog/typescript-check-if-object-implements-interface.
- How to check an interface? You can't use
typeof
. But you CAN use thein
type guard: https://stackoverflow.com/questions/14425568/interface-type-check-with-typescript - How to get/create types based on the returned data from an array: https://steveholgado.com/typescript-types-from-arrays/
- The keyword
infer
in conditional types: https://www.typescriptlang.org/docs/handbook/2/conditional-types.html#inferring-within-conditional-types - Overloaded functions with arrow syntax: https://stackoverflow.com/questions/39187614/typescript-overload-arrow-functions/53143568#53143568
- Video: assert functions: https://www.youtube.com/watch?v=8lM609lci7E (also watch other content from Matt Pocock!).
- Another blog on common TS mistakes: https://betterprogramming.pub/7-typescript-common-mistakes-to-avoid-581c30e514d6