Files
discord-clone/node_modules/vite-plugin-checker/dist/esm/codeFrame.d.ts
2023-01-03 09:29:04 -06:00

11 lines
378 B
TypeScript

import ts from 'typescript';
import { SourceLocation } from '@babel/code-frame';
declare function createFrame({ source, location, }: {
source: string;
location: SourceLocation;
}): string;
declare function tsLocationToBabelLocation(tsLoc: Record<'start' | 'end', ts.LineAndCharacter /** 0-based */>): SourceLocation;
export { createFrame, tsLocationToBabelLocation };