91 entries · 7 categories

TypeScript reference

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

91 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

Unions and narrowing

Combining types, type guards, assertions and satisfies.

15

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

tsconfig options

The most important compiler options in tsconfig.json.

18

Comparisons

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

7