Type alias DeepPartial<T>

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

Recursively makes every property in T optional, including nested objects. Used to type the partial objects yielded by StreamObjectResult.partialObjectStream as the LLM incrementally builds the JSON response.

Type Parameters

  • T

    The source type to make deeply partial.