miette() function
Miette Decorator function to be used on Error
Signature:export declare function miette(code: string, source: string): <T extends new (...args: any[]) => {}>(constructor: T) => {
new (...args: any[]): {
stackHolder: void;
name: string;
stack: string;
};
} & T;
Parameters
Parameter | Type | Description |
---|---|---|
code | string | error code |
source | string | raw source that miette needs to annotate |
\<T extends new (...args: any[]) => {}>(constructor: T) => { new (...args: any[]): { stackHolder: void; name: string; stack: string; }; } & T