Documentation
    Preparing search index...

    Interface IFailure<E>

    Failed result variant.

    Indicates the operation failed and contains error information. Access via error after checking success is false.

    interface IFailure<E> {
        error: E;
        success: false;
    }

    Type Parameters

    • E

      Type of the error value

    Index

    Properties

    Properties

    error: E

    The error information.

    Contains details about why the operation failed. Only accessible when success is false.

    success: false

    Success discriminator.

    Always false for failed results. Use this to narrow the type before accessing error.