block-timestamp/lib/services/error.d.ts

10 lines
242 B
TypeScript
Raw Permalink Normal View History

2024-12-23 00:50:20 +00:00
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;