DeepPartial
@guoba-ai/utils / types / DeepPartial
Type Alias: DeepPartial<T>
type DeepPartial<T> = { [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P] };Defined in: types.ts:39
Recursively makes all properties optional.
Type Parameters
T
T
Example
type Partial = DeepPartial<{ a: { b: number } }> // { a?: { b?: number } }