58 entries · 5 categories

TypeScript reference

Basic types, interfaces, unions, generics and every utility type. Each example shows the type the compiler infers.

58 entries

Basic types

Primitive types, arrays, tuples, enums, any, unknown and never.

13

Interfaces and classes

Describing the shape of objects, inheritance and access modifiers.

12

Generics and advanced types

Types with parameters, keyof, conditional, mapped and template literal types.

9

Utility types

Built-in types that transform other types: Partial, Pick, Omit and the rest.

17

Comparisons

How similar types and constructs differ and when to pick each one.

7