tovarish-relayer/lib/services/error.d.ts

12 lines
324 B
TypeScript
Raw Permalink Normal View History

import { NetIdType } from 'tornado-scripts';
2024-11-13 01:42:13 +00:00
export interface ErrorTypes {
type: string;
netId: number;
timestamp: number;
}
export interface ErrorMessages extends ErrorTypes {
message?: string;
stack?: string;
}
export declare function newError(type: string, netId: NetIdType, err: any): ErrorMessages;