Sanity Library Reference Docs
    Preparing search index...

    Interface BatchItem<TResult>Beta

    The result of a step.fanout branch. Using durables is considered experimental and may change in the future.

    interface BatchItem<TResult> {
        error?: Error;
        index: number;
        result?: TResult;
        status: BatchItemStatus;
    }

    Type Parameters

    • TResult
    Index

    Properties

    error?: Error

    The error if the item failed

    index: number

    Index of the item in the original array

    result?: TResult

    The result value if the item succeeded

    Status of the item execution