@praha/byethrow
    Preparing search index...

    Type Alias Failure<E>

    Represents a failed result.

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

    const failure: Result.Failure<string> = {
    type: 'Failure',
    error: 'Something went wrong',
    };
    type Failure<E> = {
        error: E;
        type: "Failure";
    }

    Type Parameters

    • E

      The type of the error.

    Index

    Properties

    Properties

    error: E
    type: "Failure"