durrrrrrrrrjs
Version:
15 lines (14 loc) • 482 B
TypeScript
declare type Location = {
column: number;
line: number;
};
declare type NodeLocation = {
end?: Location;
start?: Location;
};
export declare function codeFrameColumns(rawLines: string, loc: NodeLocation, opts?: Object): string;
/**
* Create a code frame, adding line numbers, code highlighting, and pointing to a given position.
*/
export default function (rawLines: string, lineNumber: number, colNumber?: number, opts?: Object): string;
export {};