Skip to content

TypeScript typing practice - hard

TypeScript adds a whole second grammar of type annotations on top of JavaScript, and that grammar is almost entirely punctuation.

What actually slows people down

Union types make `|` a common character rather than a rare one, and nested generics stack angle brackets several deep.