@petsel/es-type-detection - v1.0.0
    Preparing search index...

    Type Alias AnyError

    AnyError: Error & { __brand: "AnyError"; constructor: Function }

    Any error instance - including:

    • The base Error type (new Error())
    • Built-in subclasses (e.g. SyntaxError, TypeError, RangeError, etc.)
    • Custom error types that extend the Error class

    The __constructor refers to the actual constructor function (e.g. Error, SyntaxError, or a custom class).