Skip to main content

TypeScript Cheatsheet

New

TypeScript reference covering types, generics, utility types, and type guards.

typescripttypesreferencecheatsheet
Read the guide
Shortcuts:⌘ KSearch
0 entries

Frequently Asked Questions

Does this include the common utility types like Partial, Pick, Omit, and Awaited?

Yes. Utility Types are one of the main built-in categories, and the sheet includes Partial, Required, Pick, Omit, Record, Readonly, Exclude, Extract, ReturnType, and Awaited.

Can I switch between a compact reminder and the full TypeScript form?

Yes. The “Show full syntax” toggle swaps each card's syntax block between the shorter reminder and a fuller snippet.

Does it address the any vs unknown question?

It does. One of the basic-type entries explicitly recommends unknown instead of any and shows that you should narrow the value before using it.

Is tsconfig covered here or is it all type syntax?

tsconfig is included too. The Config section covers strict mode, target/module, baseUrl plus paths, and noUncheckedIndexedAccess.

Is this aimed at React or JSX-specific TypeScript?

No. It is a general TypeScript reference, so it focuses on types, generics, guards, utility types, and config rather than framework-specific patterns.

Related Tools