Skip to main content
D
TypeScript
TypeScript Utility Types

TypeScript Utility Types

Utility Types transform existing types into new shapes instantly.

Read Time
5 min read
Difficulty
Beginner
Last Updated
Jun 15, 2026
Version
v1.0.0

Introduction

Sometimes you have a strict Interface, but you only need a few properties from it, or you want to make all the properties optional temporarily. TypeScript provides built-in Utility Types to transform your data structures without writing brand new ones from scratch.

Example

Example
1/* this makes an interface optional */
2interface User {
3  name: string;
4  age: number;
5}
6
7// Partial makes name and age optional
8type OptionalUser = Partial<User>;

Key Points

  • `Partial` makes all properties optional.
  • `Required` makes all properties required.
  • `Pick` grabs specific properties from a type.
  • `Omit` deletes specific properties from a type.

Up Next

Continue your journey with the next topic.

Go to TS tsconfig