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

    Type Alias SomeRequired<T, K>

    SomeRequired: Prettify<Omit<T, K> & NonNullableValues<Pick<T, K>>>

    Makes the keys in K required with non-nullish value types; all other keys keep their original optionality.

    Type Parameters

    • T

      Source object type.

    • K extends keyof T

      Keys to require (values become non-nullish).

    type Input = { id?: string; name?: string; active?: boolean };
    type Output = SomeRequired<Input, "id">;
    // ^? { id: string; name?: string; active?: boolean }