data-cap
    Preparing search index...

    Type Alias OperationOutcome<T>

    OperationOutcome:
        | { status: "success"; value: T }
        | { error: DataError; status: "error" }

    The settled result of one runGetters call: either the resolved patch, or the error it failed with.

    Type Parameters

    • T

    Type Declaration

    • { status: "success"; value: T }
      • Readonlystatus: "success"

        Always "success" for this variant.

      • Readonlyvalue: T

        The resolved, ownership-narrowed patch.

    • { error: DataError; status: "error" }
      • Readonlyerror: DataError

        The error the call rejected with.

      • Readonlystatus: "error"

        Always "error" for this variant.