Skip to content

Instantly share code, notes, and snippets.

@willgriffiths
Last active November 15, 2019 04:04
Show Gist options
  • Save willgriffiths/8895f847483783ea36f125a284d877e8 to your computer and use it in GitHub Desktop.
Save willgriffiths/8895f847483783ea36f125a284d877e8 to your computer and use it in GitHub Desktop.
TypeScript Beginner Resources - Some resources that are help when you start learning
Start here
Video introduction Anders Hejlsberg.
Typescript in 5 minutes Introduction from the official docs.
TypeScript Playground I highly recommend having this open when going through any the handbook. Copy your code into the compiler and change it improve your understanding.

Javascript Examples &

TypeScript Examples

If you like a hands on approach then I recommend starting with the examples. Head over to the handbook to fill in the missing gaps.
TypeScript Handbook

It's from the official docs. Read this next. It covers all the ins and outs of typescript.

Start with:

  • Basic Types
  • Variable Declarations
  • Interfaces
  • Classes
  • Functions
  • Generics
  • Utility Types

Then if you want to dig deeper:

  • Type Inference
  • Type Compatibility
  • Advanced Types
  • JSX

The rest can be used as a reference when needed.



Useful Tips and Resources
Clean Code Typescript Clean Code's good practices and code examples rewritten in TS.
Type-check your javascript DY recommended this video.
Babel TS Caveats @babel/plugin-transform-typescript isn't able to implement all features of the typescript compiler (tsc) so this page details the limitations and available workarounds.
React TS Example Quick intro to using TS with React.
React TS Cheatsheet
TypeScript Deep Dive eBook
TS FAQ Answers more specific questions and address common complaints.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment