@jossmac/lil-libs
    Preparing search index...

    Type Alias NonNullableValues<T>

    NonNullableValues: { [P in keyof T]-?: Exclude<T[P], null | undefined> }

    Maps each property of T, removing null and undefined from its value type; all keys become required.

    Type Parameters

    • T

      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 }