A utility type that makes all properties of a given type T nullable.
T
The type whose properties will be made nullable.
// Given the type:type User = { id: number; name: string;};// The Nullable type will transform it to:type NullableUser = Nullable<User>;// Resulting in: { id: number | null; name: string | null; } Copy
// Given the type:type User = { id: number; name: string;};// The Nullable type will transform it to:type NullableUser = Nullable<User>;// Resulting in: { id: number | null; name: string | null; }
A utility type that makes all properties of a given type
Tnullable.