Construct a Result containing an error value.

  • Type Parameters

    • T extends {}

      the type of success values

    • E extends {}

      the type of the error value

    Parameters

    • error: E

      the error contained by the Result

    Returns Result<T, E>

    a Result containing an error error

MMNEPVFCICPMFPCPTTAAATR