UNPKG

codecrucible-synth

Version:

Production-Ready AI Development Platform with Multi-Voice Synthesis, Smithery MCP Integration, Enterprise Security, and Zero-Timeout Reliability

31 lines 920 B
/** * TypeScript Strict Mode Error Utilities * Provides type-safe error handling helpers */ /** * Type guard to check if an unknown value is an Error */ export declare function isError(error: unknown): error is Error; /** * Type guard to check if an unknown value has a message property */ export declare function hasMessage(error: unknown): error is { message: string; }; /** * Safely get error message from unknown error type */ export declare function getErrorMessage(error: unknown): string; /** * Safely get error stack from unknown error type */ export declare function getErrorStack(error: unknown): string | undefined; /** * Convert unknown error to Error instance */ export declare function toError(error: unknown): Error; /** * Type-safe error handler for catch blocks */ export declare function handleError(error: unknown, context?: string): Error; //# sourceMappingURL=error-utils.d.ts.map