hatch-surf/node_modules/next/dist/server/lib/source-maps.d.ts
Riley Zhang df378d33ef
Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Merge GitHub main into Gitea repo (allow unrelated histories)
Resolved conflicts by taking GitHub versions for:
- .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml

Kept deploy.sh updated to:
- Pull from GitHub (primary source)
- Push to Gitea (push-mirror)
- Build from site/ directory (GitHub structure)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-25 05:20:46 +02:00

45 lines
1.9 KiB
TypeScript

/**
* https://tc39.es/source-map/#index-map
*/
interface IndexSourceMapSection {
offset: {
line: number;
column: number;
};
map: BasicSourceMapPayload;
}
/** https://tc39.es/ecma426/#sec-index-source-map */
interface IndexSourceMap {
version: number;
file: string;
sections: IndexSourceMapSection[];
}
/** https://tc39.es/ecma426/#sec-source-map-format */
export interface BasicSourceMapPayload {
version: number;
/** WARNING: `file` is optional. */
file: string;
sourceRoot?: string;
/** WARNING: `sources[number]` can be `null`. */
sources: Array<string>;
names: Array<string>;
mappings: string;
ignoreList?: number[];
}
export type ModernSourceMapPayload = BasicSourceMapPayload | IndexSourceMap;
export declare function sourceMapIgnoreListsEverything(sourceMap: BasicSourceMapPayload): boolean;
/**
* Finds the sourcemap payload applicable to a given frame.
* Equal to the input unless an Index Source Map is used.
* @param line0 - The line number of the frame, 0-based.
* @param column0 - The column number of the frame, 0-based.
*/
export declare function findApplicableSourceMapPayload(line0: number, column0: number, payload: ModernSourceMapPayload): BasicSourceMapPayload | undefined;
export declare function filterStackFrameDEV(sourceURL: string, functionName: string, line1: number, column1: number): boolean;
export declare function findSourceMapURLDEV(scriptNameOrSourceURL: string): string | null;
export declare function devirtualizeReactServerURL(sourceURL: string): string;
export declare function ignoreListAnonymousStackFramesIfSandwiched<Frame>(frames: Frame[], isAnonymousFrame: (frame: Frame) => boolean, isIgnoredFrame: (frame: Frame) => boolean, getMethodName: (frame: Frame) => string,
/** only passes frames for which `isAnonymousFrame` and their method is a native JS method or `isIgnoredFrame` return true */
ignoreFrame: (frame: Frame) => void): void;
export {};