@blockchaincommons/envelope-pattern - v1.0.0-beta.2
    Preparing search index...

    Type Alias DcborResult<T, E>

    DcborResult: { ok: true; value: T } | { ok: false; error: E }

    A non-throwing outcome: the value, or the error.

    Type Parameters

    • T
    • E

    Type Declaration

    • { ok: true; value: T }
      • Readonlyok: true

        true: value is present.

      • Readonlyvalue: T

        The outcome.

    • { ok: false; error: E }
      • Readonlyok: false

        false: error is present.

      • Readonlyerror: E

        Why there is no value.