Utility Type

Noun · Development

Definitions

  1. A built-in generic type in TypeScript that transforms other types — for example, Partial<T> makes all properties optional, Pick<T, K> selects a subset of properties, and Omit<T, K> removes them. They enable type manipulation without duplicating interface definitions.

    In plain English: A built-in TypeScript shortcut that lets you create modified versions of existing types, like making all fields optional, without rewriting the whole definition.

    Example: "Just use Partial<User> for the update endpoint so every field is optional — no need to define a separate UpdateUserDto."

Related Terms