UNPKG

checksync

Version:

A tool that allows code to be annotated across different files to ensure they remain in sync.

28 lines (27 loc) 941 B
import FileReferenceLogger from "./file-reference-logger"; import { ExitCode } from "./exit-codes"; import { ErrorDetails, Options, ILog } from "./types"; type ErrorsByFile = { [key: string]: Array<ErrorDetails>; }; export default class OutputSink { _fixableFileNames: Set<string>; _mainLog: ILog; _options: Options; _errorsByFile: ErrorsByFile; _filesWithUnfixableErrors: Set<string>; _fileLog: FileReferenceLogger | null | undefined; constructor(options: Options, log: ILog); _getKeyForFile(file: string): string; _getErrorsForFile(file: string): Array<ErrorDetails>; _initErrorsForFile(file: string): void; _cleanUpErrorlessFile(file: string): boolean; startFile(file: string): void; processError(errorDetails: ErrorDetails): void; endFile(): Promise<void>; _getFullLaunchString(): string; _outputJson(): void; _outputText(): void; end(): ExitCode; } export {};