process numbers and booleans before strings

This commit is contained in:
Tobias Koppers 2020-03-26 16:43:00 +01:00
parent 269c230a00
commit 505183833b
6 changed files with 15 additions and 15 deletions

View File

@ -117,8 +117,8 @@ export type ExternalItem =
*/
[k: string]:
| string[]
| string
| boolean
| string
| {
[k: string]: any;
};
@ -1851,7 +1851,7 @@ export interface StatsOptions {
/**
* Preset for the default values.
*/
preset?: string | boolean;
preset?: boolean | string;
/**
* Show exports provided by modules.
*/

View File

@ -121,6 +121,6 @@ export interface DllReferencePluginOptionsContent {
/**
* Module ID.
*/
id: string | number;
id: number | string;
};
}

View File

@ -412,14 +412,14 @@
"minLength": 1
}
},
{
"description": "The target of the external.",
"type": "string"
},
{
"description": "`true`: The dependency name is used as target of the external.",
"type": "boolean"
},
{
"description": "The target of the external.",
"type": "string"
},
{
"type": "object"
}
@ -2891,10 +2891,10 @@
"description": "Preset for the default values.",
"anyOf": [
{
"type": "string"
"type": "boolean"
},
{
"type": "boolean"
"type": "string"
}
]
},

View File

@ -34,11 +34,11 @@
"description": "Module ID.",
"anyOf": [
{
"type": "string",
"minLength": 1
"type": "number"
},
{
"type": "number"
"type": "string",
"minLength": 1
}
]
}

View File

@ -3922,13 +3922,13 @@ Object {
"description": "Preset for the default values.",
"multiple": false,
"path": "stats.preset",
"type": "string",
"type": "boolean",
},
Object {
"description": "Preset for the default values.",
"multiple": false,
"path": "stats.preset",
"type": "boolean",
"type": "string",
},
],
"description": "Preset for the default values.",

View File

@ -21,9 +21,9 @@ const typeOrder = [
"array",
"enum",
"RegExp",
"string",
"number",
"boolean",
"string",
"object",
"Function",
undefined