Skip to content

API reference / @backpack/config / DeepPartial

Type Alias: DeepPartial<T>

ts
type DeepPartial<T> = T extends (...args) => any ? PartialDeepObject<T> | undefined : T extends object ? T extends readonly infer ItemType[] ? ItemType[] extends T ? readonly ItemType[] extends T ? readonly DeepPartial<ItemType | undefined>[] : DeepPartial<ItemType | undefined>[] : PartialDeepObject<T> : PartialDeepObject<T> : T;

A generic type-helper to make all nested properties optional.

Type Parameters

Type Parameter
T