UNPKG

@ibm/sourceorbit

Version:

IBM i dependency management tool

32 lines (31 loc) 721 B
type LogType = "info" | "warning" | "includeFix" | "rename"; type FileLogs = { [path: string]: FileLog[]; }; interface ChangeSuggestion { rename?: { path: string; newName: string; }; lineContent?: string; } export interface FileLog { type: LogType; message: string; line?: number; range?: { start: number; end: number; }; change?: ChangeSuggestion; } export declare class Logger { private logs; constructor(); flush(specificPath?: string): void; fileLog(path: string, log: FileLog): void; exists(path: string, type: LogType): boolean; getAllLogs(): FileLogs; getLogsFor(path: string): FileLog[] | undefined; } export {};