Function Ok

  • Construct a Result with a success value of A.

    Type Parameters

    • A
    • E = any

    Parameters

    Returns Result<A, E>

    const systemWorking: Result<string, string> = Ok("Seems to be!");