JavaScript & TypeScript

Utility Types

/juːˈtɪlɪti taɪps/

Definition

Built-in TypeScript generic types for common transformations: Partial<T>, Required<T>, Pick<T,K>, Omit<T,K>.

Example in context

"Partial<UserUpdate> makes all fields optional — useful for PATCH request types where any subset is valid."

Related terms

Practice this term

Master Utility Types in context by working through exercises in the JavaScript & TypeScript module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.