Skip to content

About

TypeScript notes: structural typing, inference and annotations, the type zoo, aliases and interfaces, classes and functions, assertions, type guards, intersections and generics.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

81 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript: the typed superset of JS

License: MIT

Notes on TypeScript, written between 2020 and 2022 and revised since. Treat them as working notes rather than a reference: they cover the parts I wanted to pin down, in the order I met them, and the TypeScript Handbook is the authority when you need one.

What they do give you that a handbook page does not: every sample in here is compiled, so if a block says it produces an error, it produces that error.

npm install
npm run check-samples

That extracts every fenced ts block and type-checks it against TypeScript 5.9 under strict. Blocks that are meant to fail, either because they demonstrate a compiler error or because they continue an earlier sample, are listed with a reason in samples.allowlist.txt.

Index

About

TypeScript notes: structural typing, inference and annotations, the type zoo, aliases and interfaces, classes and functions, assertions, type guards, intersections and generics.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages