Languages
TypeScript
Static types for JavaScript — inference, generics, narrowing.
- •150 XPTypes & InferenceHow TypeScript decides what type your value has — without you saying so.
- •150 XPInterfaces vs Type AliasesSame job 80% of the time. The 20% where the answer is forced.
- •175 XPGenericsType parameters, constraints, defaults, inference at the call site.
- •175 XPDiscriminated Unions & ExhaustivenessTag, narrow, exhaust — the safest pattern for variant data.
- •175 XPUtility TypesPartial, Pick, Omit, Record, ReturnType — the tools you should reach for first.
- •175 XPType Guards & Narrowingtypeof, instanceof, `in`, predicates, assertions — and which to reach for.
- •200 XPConditional & Mapped Typesextends, infer, distribution, mapped key remapping — TypeScript at type level.
- •175 XPModules & DeclarationsESM vs CJS, .d.ts files, ambient declarations, module augmentation, types-only imports.
- •175 XPStrict Mode & TSConfigThe flags that turn TypeScript from suggestions into enforcement.