mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
PR-URL: https://github.com/nodejs/node/pull/58754 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
14 lines
380 B
TypeScript
14 lines
380 B
TypeScript
type SwcError = {
|
|
code: "UnsupportedSyntax" | "InvalidSyntax";
|
|
message: string;
|
|
startColumn: number;
|
|
startLine: number;
|
|
snippet: string;
|
|
filename: string;
|
|
endColumn: number;
|
|
endLine: number;
|
|
};
|
|
export declare function isSwcError(error: unknown): error is SwcError;
|
|
export declare function wrapAndReThrowSwcError(error: SwcError): never;
|
|
export {};
|