Utility Types API Reference
TypeScript built-in utility types for transforming and combining types.
Utility Types
Global utility types provided by TypeScript's lib.es5.d.ts.
Partial<T>Make all properties of T optional.
Returns: type
Required<T>Make all properties of T required (removes ? modifiers).
Returns: type
Readonly<T>Make all properties of T readonly.
Returns: type
Record<K, V>Construct an object type with keys K and values V.
Returns: type
Pick<T, K>Pick only the keys K from T.
Returns: type
Omit<T, K>Construct a type with all properties of T except those in K.
Returns: type
Exclude<T, U>Exclude from union T all types assignable to U.
Returns: type
Extract<T, U>Extract from union T all types assignable to U.
Returns: type
NonNullable<T>Exclude null and undefined from T.
Returns: type
ReturnType<T>Return the return type of function type T.
Returns: type
Parameters<T>Return a tuple type of the parameter types of function type T.
Returns: type