Skip to main content
type ExactPartial<T> = { [P in keyof T]?: T[P] extends object ? ExactPartial<T[P]> : T[P] };
A type that makes all properties of an object optional.

Type Parameters

Type ParameterDescription
TThe type to make partial.

Returns

The partial type.