UNPKG

590 BTypeScriptView Raw
1export declare type LogLevel = "INFO" | "WARN" | "ERROR";
2export 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}
13/**
14 * Takes raw options from the webpack config,
15 * validates them and adds defaults for missing options
16 */
17export declare function getOptions(rawOptions: {}): Options;