lingjing/node_modules/next/dist/next-devtools/dev-overlay/components/code-frame/parse-code-frame.d.ts
2026-02-23 09:51:43 +00:00

9 lines
459 B
TypeScript

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;
};