block-timestamp/lib/services/error.d.ts
2024-12-19 14:13:17 +00:00

10 lines
242 B
TypeScript
Vendored

export interface ErrorTypes {
type: string;
timestamp: number;
}
export interface ErrorMessages extends ErrorTypes {
message?: string;
stack?: string;
}
export declare function newError(type: string, err: any): ErrorMessages;