mini-effect
    Preparing search index...

    Type Alias Failure<T>

    The shape of a tagged error instance created by a FailureConstructor.

    Tagged errors carry a __tag string discriminant that enables type-safe pattern matching via catchTags. The optional cause property holds the underlying error when wrapping other exceptions.

    type Failure<T extends string> = {
        __tag: T;
        cause?: unknown;
    }

    Type Parameters

    • T extends string

      A string literal type used as the tag discriminator

    Index

    Properties

    Properties

    __tag: T
    cause?: unknown