checksync
Version:
A tool that allows code to be annotated across different files to ensure they remain in sync.
31 lines (30 loc) • 1.18 kB
TypeScript
import { ILog, IPositionLog } from "./types";
/**
* Output log entries specific to a file and a location in that file.
*
* For the basic calls, we assume line 0 0.
* Output format:
* filename:line:column message
*
* @export
* @class FileReferenceLogger
* @implements {ILog}
*/
export default class FileReferenceLogger implements IPositionLog {
_log: ILog;
_file: string;
constructor(file: string, log: ILog);
get file(): string;
mismatch: (message: string, line?: string | number) => void;
migrate: (message: string, line?: string | number) => void;
fix: (message: string, line?: string | number) => void;
log: (message: string, line?: string | number) => void;
info: (message: string, line?: string | number) => void;
warn: (message: string, line?: string | number) => void;
error: (message: string, line?: string | number) => void;
group: (...labels: Array<string>) => void;
groupEnd: () => void;
verbose: (messageBuilder: () => string | null | undefined, line?: string | number) => void;
_format: (message: string, line?: string | number) => string;
_formatRef: (line?: string | number) => string;
}