Function Err

  • Construct a Result with an error value of E.

    Type Parameters

    • E
    • A = any

    Parameters

    Returns Result<A, E>

    const systemWorking: Result<string, string> = Err("System down!");