Documentation
    Preparing search index...

    Type Alias UnpackOptionalValues<Data, MaxDepth, Depth>

    UnpackOptionalValues: {
        [O in {
            [K in keyof Data]: [undefined] extends [Data[K]]
                ? LimitDepth<K, Data[K], MaxDepth, Depth>
                : never
        }[keyof Data]]?: UnpackKeyValue<Data[O], MaxDepth, Depth>
    }

    Only unpacks values that can be undefined and mark them as optional.

    Type Parameters

    • Data
    • MaxDepth extends number
    • Depth extends number