webpack-dev-server 4.6.0 → 4.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,50 @@
1
+ export = processArguments;
2
+ /**
3
+ * @param {Record<string, Argument>} args object of arguments
4
+ * @param {any} config configuration
5
+ * @param {Record<string, string | number | boolean | RegExp | (string | number | boolean | RegExp)[]>} values object with values
6
+ * @returns {Problem[] | null} problems or null for success
7
+ */
8
+ declare function processArguments(
9
+ args: Record<string, Argument>,
10
+ config: any,
11
+ values: Record<
12
+ string,
13
+ string | number | boolean | RegExp | (string | number | boolean | RegExp)[]
14
+ >
15
+ ): Problem[] | null;
16
+ declare namespace processArguments {
17
+ export { ProblemType, Problem, LocalProblem, ArgumentConfig, Argument };
18
+ }
19
+ type Argument = {
20
+ description: string;
21
+ simpleType: "string" | "number" | "boolean";
22
+ multiple: boolean;
23
+ configs: ArgumentConfig[];
24
+ };
25
+ type Problem = {
26
+ type: ProblemType;
27
+ path: string;
28
+ argument: string;
29
+ value?: any | undefined;
30
+ index?: number | undefined;
31
+ expected?: string | undefined;
32
+ };
33
+ type ProblemType =
34
+ | "unknown-argument"
35
+ | "unexpected-non-array-in-path"
36
+ | "unexpected-non-object-in-path"
37
+ | "multiple-values-unexpected"
38
+ | "invalid-value";
39
+ type LocalProblem = {
40
+ type: ProblemType;
41
+ path: string;
42
+ expected?: string | undefined;
43
+ };
44
+ type ArgumentConfig = {
45
+ description: string;
46
+ path: string;
47
+ multiple: boolean;
48
+ type: "enum" | "string" | "path" | "number" | "boolean" | "RegExp" | "reset";
49
+ values?: any[] | undefined;
50
+ };
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env node
2
+ export type CliOption = {
3
+ /**
4
+ * display name
5
+ */
6
+ name: string;
7
+ /**
8
+ * npm package name
9
+ */
10
+ package: string;
11
+ /**
12
+ * name of the executable file
13
+ */
14
+ binName: string;
15
+ /**
16
+ * currently installed?
17
+ */
18
+ installed: boolean;
19
+ /**
20
+ * homepage
21
+ */
22
+ url: string;
23
+ /**
24
+ * preprocessor
25
+ */
26
+ preprocess: Function;
27
+ };