augment-vir - v31.59.0
    Preparing search index...

    Type Alias RemoveUndefinedValues<ObjectGeneric>

    RemoveUndefinedValues: string extends keyof ObjectGeneric
        ? Record<string, Exclude<ObjectGeneric[keyof ObjectGeneric], undefined>>
        : {
            [Key in ExcludeKeysWithMatchingValues<ObjectGeneric, undefined>]: ObjectGeneric[Key]
        } & {
            [Key in ExtractKeysWithMatchingValues<ObjectGeneric, undefined>]?: Exclude<
                ObjectGeneric[Key],
                undefined,
            >
        }

    Converts any optionally undefined keys to partials with non-undefined values. This does not exclude null (but RemoveNullishValues does).

    Type Parameters

    • ObjectGeneric