@sentzunhat/zacatl
Version:
A modular, high-performance TypeScript microservice framework for Node.js, featuring layered architecture, dependency injection, and robust validation for building scalable APIs and distributed systems.
14 lines • 621 B
TypeScript
import type { CustomError } from '../error/index.js';
import type { ZodError } from '../third-party/zod.js';
export declare const isError: (error: unknown) => error is Error;
export declare const isZodError: (error: unknown) => error is ZodError;
export declare const isCustomError: (error: unknown) => error is CustomError;
export declare const isNodeError: (error: unknown) => error is NodeError;
type NodeError = Error & {
code?: string;
errno?: number;
syscall?: string;
};
export declare const isSyntaxError: (error: unknown) => error is SyntaxError;
export {};
//# sourceMappingURL=error-guards.d.ts.map