@praha/byethrow
    Preparing search index...

    Type Alias ResultMaybeAsync<T, E>

    ResultMaybeAsync: Result.Result<T, E> | Promise<Result.Result<T, E>>

    A result that may be either synchronous or asynchronous.

    Type Parameters

    import { Result } from '@praha/byethrow';

    const result: Result.ResultMaybeAsync<number, string> = { type: 'Success', value: 10 };
    import { Result } from '@praha/byethrow';

    const result: Result.ResultMaybeAsync<number, string> = Promise.resolve({ type: 'Failure', error: 'error' });