Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced TypeScript types #44

Open
vmasek opened this issue Feb 26, 2020 · 0 comments
Open

Advanced TypeScript types #44

vmasek opened this issue Feb 26, 2020 · 0 comments
Assignees
Labels
FrontEnd Angular, RxJS, NgRx, SCSS and other code style Workshop

Comments

@vmasek
Copy link
Member

vmasek commented Feb 26, 2020

Proposal

  • Differences between classes, interfaces and type aliases.
  • Literal and enum-member types.
  • Intersection and union types.
  • Type guards based on type discriminants, duck typing, typeof and instanceof.
  • Index signatures and mapped types.
  • Type-generic interfaces, type aliases and functions.

Take away

Developers should be aware of Typescript's more advanced typing capabilities, understand the basics of how they work and in which cases they can be utilized for improved type-safety and IDE intellisense.

In particular, they should understand:

  • generic types and functions,
  • type guards (particularly when combined with strict null checks),
  • unions and discriminated union pattern,
  • mapped types and keyof type.
@vmasek vmasek added FrontEnd Angular, RxJS, NgRx, SCSS and other code style Workshop labels Feb 26, 2020
@matejchalk matejchalk changed the title Advance TypeScript types Advanced TypeScript types Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FrontEnd Angular, RxJS, NgRx, SCSS and other code style Workshop
Projects
None yet
Development

No branches or pull requests

3 participants