process numbers and booleans before strings
This commit is contained in:
parent
269c230a00
commit
505183833b
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -121,6 +121,6 @@ export interface DllReferencePluginOptionsContent {
|
|||
/**
|
||||
* Module ID.
|
||||
*/
|
||||
id: string | number;
|
||||
id: number | string;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -34,11 +34,11 @@
|
|||
"description": "Module ID.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"type": "number"
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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.",
|
||||
|
|
|
@ -21,9 +21,9 @@ const typeOrder = [
|
|||
"array",
|
||||
"enum",
|
||||
"RegExp",
|
||||
"string",
|
||||
"number",
|
||||
"boolean",
|
||||
"string",
|
||||
"object",
|
||||
"Function",
|
||||
undefined
|
||||
|
|
Loading…
Reference in New Issue