8 lines
312 B
TypeScript
8 lines
312 B
TypeScript
import type { Diagnostic } from 'typescript';
|
|
export declare function formatDiagnostic(diagnostic: Diagnostic | undefined): (SyntaxError & {
|
|
codeFrame: string;
|
|
}) | null;
|
|
export declare function annotateError(code: string | null, filename: string, error: Error): (Error & {
|
|
codeFrame: string;
|
|
}) | null;
|