Function extractOkResult

  • Helper function for extracting the value from a compiled result { Ok: T } or throw the error if { Err: E }

    Type Parameters

    • T

    Parameters

    • result: T

      The compiled result to extract from.

    Returns types.ExtractOk<T>

    The extracted value from the compiled result.

    Throws

    The error from the compiled result.