NeahNew/node_modules/next/dist/server/patch-error-inspect.d.ts
2025-05-03 14:17:46 +02:00

26 lines
897 B
TypeScript

import { type SourceMapPayload } from 'module';
type FindSourceMapPayload = (sourceURL: string) => ModernSourceMapPayload | undefined;
export declare function setBundlerFindSourceMapImplementation(findSourceMapImplementation: FindSourceMapPayload): void;
/**
* https://tc39.es/source-map/#index-map
*/
interface IndexSourceMapSection {
offset: {
line: number;
column: number;
};
map: ModernRawSourceMap;
}
interface IndexSourceMap {
version: number;
file: string;
sections: IndexSourceMapSection[];
}
interface ModernRawSourceMap extends SourceMapPayload {
ignoreList?: number[];
}
export type ModernSourceMapPayload = ModernRawSourceMap | IndexSourceMap;
export declare function patchErrorInspectNodeJS(errorConstructor: ErrorConstructor): void;
export declare function patchErrorInspectEdgeLite(errorConstructor: ErrorConstructor): void;
export {};