stack

Home > @infiniteobjects/type-utils > SetNullabeKeys

SetNullabeKeys type

Creates a type with the specified keys set to Nullable.

Signature:

export type SetNullabeKeys<BaseType, Keys extends keyof BaseType> = Merge<Except<BaseType, Keys>, SetNullable<Pick<BaseType, Keys>>>;

References: Merge, Except, SetNullable