logger.d.ts 333 B

12345678910
  1. import { Options } from "./options";
  2. import { Chalk } from "chalk";
  3. export declare type LoggerFunc = (message: string) => void;
  4. export interface Logger {
  5. log: LoggerFunc;
  6. logInfo: LoggerFunc;
  7. logWarning: LoggerFunc;
  8. logError: LoggerFunc;
  9. }
  10. export declare function makeLogger(options: Options, colors: Chalk): Logger;