Tela SDK for JavaScript
    Preparing search index...

    Type Alias CanvasExecutionResult<TParams, TOutput>

    CanvasExecutionResult: TParams extends StreamExecutionParams
        ? AsyncGenerator<Partial<TOutput>>
        : Promise<TOutput>

    Conditional type that determines the return type based on execution parameters.

    Type Parameters

    • TParams

      The execution parameters type.

    • TOutput = unknown

      The output type.

    AsyncGenerator for streaming executions, Promise otherwise.