Skip to content

API reference > @kontsedal/olas-core > DeepPartial

DeepPartial type ​

T with every property optional, at every depth. An array becomes aReadonlyArray of deep-partial items. Form.set and a form's initial take it, so a caller names only the leaves it writes.

Signature:

typescript
type DeepPartial<T> = T extends object ? T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : { [K in keyof T]?: DeepPartial<T[K]>; } : T;

References: DeepPartial

Released under the MIT License.