Extracts truthy properties from an object type T.
T
type T = { name: string; age: number; hasCar: boolean; address?: string | null;}type R = TruthyProperties<T>;// Result: { name: string; age: number; hasCar: boolean; } Copy
type T = { name: string; age: number; hasCar: boolean; address?: string | null;}type R = TruthyProperties<T>;// Result: { name: string; age: number; hasCar: boolean; }
Extracts truthy properties from an object type
T
.