Skip to main content

PartialModel

@webda/utils


Type Alias: PartialModel<T>

PartialModel<T> = { [P in keyof T]: T[P] extends Function ? T[P] : T[P] extends object ? null | PartialModel<T[P]> : T[P] | null }

Defined in: packages/utils/src/types.ts:150

Make every non-function property of T (recursively) also accept null. Functions are left untouched; nested objects are recursively transformed.

Type Parameters​

T​

T