@squidcloud/client
    Preparing search index...

    Type Alias DeepRecord<T, RemainingDepth, Prefix>

    DeepRecord: RemainingDepth extends 0
        ? PropertiesWithPrefix<Prefix>
        : {
            [k in keyof T]-?: k extends string
            | number
                ?
                    | Record<`${Prefix}${k}`, T[k]>
                    | (
                        Required<T>[k] extends any[]
                            ? never
                            : Required<T>[k] extends object
                                ? DeepRecord<
                                    Required<(...)>[k],
                                    Pred[RemainingDepth],
                                    `${Prefix}${k}.`,
                                >
                                : never
                    )
                : never
        }[keyof T]

    Recursively flattens all keys of a type into dot notation paths up to a fixed depth. Used to map deeply nested fields with their access paths.

    Type Parameters

    • T
    • RemainingDepth extends number & keyof Pred = 5
    • Prefix extends string = ""