Zero Signup ToolsFree browser tools

Developer Tools

TypeScript Utility Types Reference

Searchable reference for every built-in TypeScript utility type with signatures, examples, and use cases. Pick, Omit, Partial, Record, ReturnType, Awaited.

30 of 30

Filter by family

Object key transforms

Omit<T, K>

Constructs a type by removing the set of keys K from T.

Signature

type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;

Apply it

type SafeUser = Omit<User, "passwordHash">;

Input type

interface User {
  id: string;
  name: string;
  email: string;
  passwordHash: string;
}

Result type

type SafeUser = {
  id: string;
  name: string;
  email: string;
};

What it does

Omit<T, K> creates a new object type with every property of T except those in K. K accepts string, number, or symbol literal types (extends keyof any) so it does not error if you mention a key that is not in T; this is the documented trade-off TypeScript chose to make Omit flexible in generic positions.

Notes

Because K extends keyof any (not keyof T), Omit<User, 'badKey'> silently compiles. Use Pick<T, Exclude<keyof T, 'badKey'>> if you want a stricter check.

Also searched as

remove keys · exclude keys · drop keys · without

Common use cases

  • Hide sensitive fields like passwordHash, tokens, or internal flags
  • Remove ids when sending a create-payload to an upsert endpoint
  • Strip server-only fields before serializing a model to the client

Related entries

Pick<T, K> · Exclude<T, U> · Partial<T>

This reference covers 30 TypeScript built-in utility types and type-system primitives that appear in lib.es5.d.ts and lib.es2015.core.d.ts. Names map to the official TypeScript handbook; examples are minimal and copy-ready. Everything is pre-baked and rendered locally in your browser. No upload, no remote dictionary.

How to use

  1. Type any utility name, alias, or use-case keyword into the search box (for example: Pick, Omit, Partial, Record, ReturnType, Awaited, keyof, infer, conditional, mapped, NoInfer).
  2. The best match auto-pins to the top with the signature, the applied form, the input type, and the result type in a four-pane code view you can read at a glance.
  3. Click any card below the detail panel to pin that entry and scroll the focused view back to it.
  4. Use the family filter chips to narrow the catalog to object key transforms, union helpers, function and constructor types, string literal types, or type-system primitives.
  5. Press Copy entry to copy the full entry as plain text, click Copy on any code block to grab just that snippet, or use Copy full reference to lift the entire catalog as a Markdown document.
  6. Cross-link to related entries shown at the bottom of every detail card (for example, Pick links to Omit, Partial, Required; ReturnType links to Parameters, Awaited).

About this tool

TypeScript Utility Types Reference is a searchable, copy-ready catalog of every built-in TypeScript utility type plus the type-system primitives that every utility type is built on. Each entry shows the exact signature from lib.es5.d.ts or lib.es2015.core.d.ts, a one-line summary, a paragraph-length description, a worked example with an input type, the utility applied, and the resulting type, and a short list of common use cases drawn from real codebases. The catalog covers object key transforms (Partial, Required, Readonly, Pick, Omit), key mapping (Record), union helpers (Exclude, Extract, NonNullable), function and constructor types (Parameters, ReturnType, ConstructorParameters, InstanceType, ThisParameterType, OmitThisParameter, Awaited), the intrinsic string manipulation types (Uppercase, Lowercase, Capitalize, Uncapitalize), the type-system primitives (keyof, typeof, indexed access T[K], conditional types, mapped types, template literal types, infer), and advanced helpers (ThisType, NoInfer, as const). Type any utility name, alias, or keyword into the search box and the highest-scoring match auto-pins to the top with a four-pane code view that shows the signature, the application, the input type, and the result. Filter chips narrow the catalog to one family at a time when you are exploring an area. Copy the entry, copy any individual code block, or copy the full reference as a single Markdown document for offline use. Useful for TypeScript developers writing generics for the first time, code reviewers cross-checking that a Pick or Omit does what it claims, library authors building type-safe APIs, AI prompt engineers describing TypeScript outputs to a model, technical writers documenting types, and anyone tired of bouncing to the handbook every time they need to remember how Awaited unwraps a nested promise. The reference runs entirely in your browser; nothing is uploaded.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsDeveloper Tools