schema-components - v3.7.0
    Preparing search index...

    Type Alias PathOfType<T, Prefix>

    PathOfType: IsNarrowObject<T> extends true
        ? {
            [K in keyof T & string]: T[K] extends | string
            | number
            | boolean
            | null
            | undefined
                ? `${Prefix}${K}`
                : T[K] extends unknown[]
                    ? `${Prefix}${K}`
                    : T[K] extends object
                    | undefined
                        ?
                            | PathOfType<Exclude<T[K], undefined>, `${Prefix}${K}.`>
                            | `${Prefix}${K}`
                        : `${Prefix}${K}`
        }[keyof T & string]
        : string

    Extract all valid dot-separated paths from an object type. Produces paths like "name" | "address.city" | "address.postcode". Stops at leaf types (string, number, boolean, null) and arrays. Returns string for wide types (object, Record, unknown). Handles optional/nullable fields by unwrapping T | undefined.

    Type Parameters

    • T
    • Prefix extends string = ""