@metreeca/core - v0.12.0
    Preparing search index...

    Type Alias DeepPartial<T>

    DeepPartial: T extends Atomic
        ? T
        : T extends readonly unknown[]
            ? { [K in keyof T]: DeepPartial<T[K]> }
            : T extends object ? { [K in keyof T]?: DeepPartial<T[K]> } : T

    A deeply partial view of a value.

    Makes every property optional at any nesting depth, holding each stated slot to its declared type and carrying an Atomic through unchanged: a caller states only the slots it cares about, while a misspelled slot or a value of the wrong type is still refused. Arrays keep their arity and are widened item by item, and readonly is carried over from the source rather than imposed, so the two views compose as DeepPartial<DeepReadonly<T>>.

    Type Parameters

    • T

      The type to be viewed as deeply partial