Skip to content

AIDC Toolkit / Core / NonNullishable

Type Alias: NonNullishable<T> ​

NonNullishable<T> = T extends object ? { [P in keyof T]-?: NonNullishable<T[P]> } : NonNullable<T>

Defined in: type.ts:104

Non-nullishable type. If T is an object type, it is spread and attributes within it are made non-nullishable. Equivalent to a deep Required<T> for an object and NonNullable<T> for any other type.

Type Parameters ​

T ​

T

Type.