Metreeca Keep
    Preparing search index...

    Type Alias DeepPartial<T>

    DeepPartial: T extends undefined
    | null
    | boolean
    | number
    | string
        ? T
        : T extends readonly unknown[]
            ? { readonly [K in keyof T]: DeepPartial<T[K]> }
            : T extends object ? { readonly [K in keyof T]?: DeepPartial<T[K]> } : T

    A recursively optional view of a resource state.

    Widens a state type so a probe may fill in only the slots a check is concerned with, at any nesting depth: every property becomes optional and read-only, arrays keep their arity and element structure, and primitives are carried over unchanged. Accepted by includes and excludes to state a targeted subset of facts rather than a whole state.

    Type Parameters

    • T

      The state type to widen