Maps each property of T, removing null and undefined from its value type; all keys become required.
T
null
undefined
Object type whose property value types are stripped of nullishness.
type Input = { id: string | null; age?: number | undefined };type Output = NonNullableValues<Input>;// ^? { id: string; age: number } Copy
type Input = { id: string | null; age?: number | undefined };type Output = NonNullableValues<Input>;// ^? { id: string; age: number }
Maps each property of
T, removingnullandundefinedfrom its value type; all keys become required.