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

    Type Alias RemoveNullishValues<ObjectGeneric>

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

    Converts any optionally undefined or null keys to partials with non-nullable values.

    Type Parameters

    • ObjectGeneric