Type Alias IResult<T, E>

IResult: IResult.ISuccess<T> | IFailure<E>

Result of an operation that can either succeed or fail.

IResult is an union type that represents the result of an operation that can either succeed or fail.

You can distinguished the result by checking the IResult.success value, and if it's true, the success value is stored in IResult.value. Otherwise, if it's false, the error value is stored in IResult.error.

Type Parameters

  • T

    Type of the success value.

  • E

    Type of the error value.

Jeongho Nam - https://github.com/samchon