• A utility function to get the value from a Result or throw if there was an error

    Type Parameters

    • T = unknown

      the expected value of an ok result

    Parameters

    • result: Result<T, unknown>

      The Result to unwrap

    Returns T

    Remarks

    Allows you to get the value of a result directly or handle an error Result as an exception

Generated using TypeDoc