UNPKG

@thisisagile/easy-express

Version:

Straightforward library for building domain-driven microservice architectures

8 lines (7 loc) 298 B
import { HttpStatus } from '@thisisagile/easy'; export declare class AuthError extends Error { status: number; constructor({ name, status }: HttpStatus); } export declare const authError: (status: HttpStatus) => AuthError; export declare const isAuthError: (e?: unknown) => e is AuthError;