wilddragon-site/node_modules/next/dist/next-devtools/dev-overlay/components/code-frame/parse-code-frame.d.ts
2026-04-17 15:51:01 -04:00

8 lines
459 B
TypeScript
Executable file

import { type AnserJsonEntry } from 'next/dist/compiled/anser';
import type { StackFrame } from '../../../shared/stack-frame';
export declare function formatCodeFrame(codeFrame: string): string;
export declare function groupCodeFrameLines(formattedFrame: string): AnserJsonEntry[][];
export declare function parseLineNumberFromCodeFrameLine(line: AnserJsonEntry[], stackFrame: StackFrame): {
lineNumber: string | undefined;
isErroredLine: boolean;
};