options.d.ts 637 B

123456789101112131415161718
  1. export declare type LogLevel = "INFO" | "WARN" | "ERROR";
  2. export interface Options {
  3. readonly configFile: string;
  4. readonly extensions: ReadonlyArray<string>;
  5. readonly baseUrl: string | undefined;
  6. readonly silent: boolean;
  7. readonly logLevel: LogLevel;
  8. readonly logInfoToStdOut: boolean;
  9. readonly context: string | undefined;
  10. readonly colors: boolean;
  11. readonly mainFields: string[];
  12. readonly references: string[] | undefined;
  13. }
  14. /**
  15. * Takes raw options from the webpack config,
  16. * validates them and adds defaults for missing options
  17. */
  18. export declare function getOptions(rawOptions: {}): Options;