Making All Schema Properties Nullable in TypeScript

Is it possible to map all the properties of a schema to be nullable?

The same result achieved by this type in typescript:
export type Nullable<T> = { [K in keyof T]: T[K] | null };
Was this page helpful?