@vsokolov/utils - v1.4.2
    Preparing search index...

    Type Alias ErrorConstructor<E>

    ErrorConstructor: new (message: string, status?: number, cause?: unknown) => E

    Constructor signature for custom error classes used with tryCatch.

    Type Parameters

    • E extends Error

      The type of error class to construct