Skip to content

Commit

Permalink
Pass through ResolveTypes from Webpack (#93)
Browse files Browse the repository at this point in the history
Resolves #88.
  • Loading branch information
aaronadamsCA authored Jul 29, 2022
1 parent 426c15b commit dc3dd37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/options.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { ResolveOptions } from "webpack";

export type LogLevel = "INFO" | "WARN" | "ERROR";

export interface Options {
readonly configFile: string;
readonly extensions: ReadonlyArray<string>;
readonly extensions: ResolveOptions["extensions"];
readonly baseUrl: string | undefined;
readonly silent: boolean;
readonly logLevel: LogLevel;
readonly logInfoToStdOut: boolean;
readonly context: string | undefined;
readonly colors: boolean;
readonly mainFields: string[];
readonly mainFields: ResolveOptions["mainFields"];
}

type ValidOptions = keyof Options;
Expand Down

0 comments on commit dc3dd37

Please sign in to comment.