1 | export declare const addCustomErrorDeserializer: (name: string, deserializer: (obj: any) => any) => void;
|
2 | declare type CustomErrorFunc = (message?: string, fields?: {
|
3 | [key: string]: any;
|
4 | }) => void;
|
5 | export declare const createCustomErrorClass: (name: string) => CustomErrorFunc;
|
6 | export declare const deserializeError: (object: any) => Error;
|
7 | export declare const serializeError: (value: any) => undefined | To | string;
|
8 | interface To {
|
9 | name?: string;
|
10 | message?: string;
|
11 | stack?: string;
|
12 | }
|
13 | export {};
|