Logos DX
    Preparing search index...

    Type Alias DeepOptional<T>

    DeepOptional: {
        [K in keyof T]?: T[K] extends object ? DeepOptional<T[K]> : T[K]
    }

    Makes all properties in a nested object optional recursively.

    Critical for partial update operations, configuration merging, and scenarios where deep object structures need incremental updates.

    Type Parameters

    • T
    interface Config { api: { url: string; timeout: number; }; ui: { theme: string; }; }
    function updateConfig(partial: DeepOptional<Config>): void
    updateConfig({ api: { timeout: 5000 } }); // Only timeout is required