augment-vir - v32.2.2
    Preparing search index...

    Type Alias UndefinedToOptional<T>

    UndefinedToOptional: Simplify<
        { [Key in keyof Pick<T, FilterDefinedKeys<T>>]: T[Key] } & {
            [Key in keyof Pick<T, FilterOptionalKeys<T>>]?: Exclude<
                T[Key],
                undefined,
            >
        },
    >

    For an object T, if it has any properties that are a union with undefined, make those into optional properties instead.

    Copied from the internal UndefinedToOptional type in the type-fest package so that this package's public types do not depend on type-fest (see the note in type-checks.ts).

    Type Parameters

    • T extends object