improve schema and description
This commit is contained in:
parent
7f22e4721f
commit
bb6c596272
|
@ -1317,9 +1317,11 @@ export interface ModuleOptions {
|
|||
*/
|
||||
export interface RuleSetRule {
|
||||
/**
|
||||
* Specify assertions on the imported module. If one of the assertion can't be met, the module will fail to import.
|
||||
* Match on import assertions of the dependency.
|
||||
*/
|
||||
assert?: ImportAssertions;
|
||||
assert?: {
|
||||
[k: string]: RuleSetConditionOrConditions;
|
||||
};
|
||||
/**
|
||||
* Match the child compiler name.
|
||||
*/
|
||||
|
@ -1431,15 +1433,6 @@ export interface RuleSetRule {
|
|||
*/
|
||||
use?: RuleSetUse;
|
||||
}
|
||||
/**
|
||||
* Specify assertions on the imported module. If one of the assertion can't be met, the module will fail to import.
|
||||
*/
|
||||
export interface ImportAssertions {
|
||||
/**
|
||||
* The module type.
|
||||
*/
|
||||
type?: "json";
|
||||
}
|
||||
/**
|
||||
* Logic operators used in a condition matcher.
|
||||
*/
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1237,18 +1237,6 @@
|
|||
"description": "Wrap javascript code into IIFE's to avoid leaking into global scope.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"ImportAssertions": {
|
||||
"description": "Specify assertions on the imported module. If one of the assertion can't be met, the module will fail to import.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"type": {
|
||||
"description": "The module type.",
|
||||
"type": "string",
|
||||
"enum": ["json"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"ImportFunctionName": {
|
||||
"description": "The name of the native import() function (can be exchanged for a polyfill).",
|
||||
"type": "string"
|
||||
|
@ -3598,13 +3586,11 @@
|
|||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"assert": {
|
||||
"description": "Specify assertions on the imported module. If one of the assertion can't be met, the module will fail to import.",
|
||||
"description": "Match on import assertions of the dependency.",
|
||||
"type": "object",
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/definitions/ImportAssertions"
|
||||
}
|
||||
]
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/RuleSetConditionOrConditions"
|
||||
}
|
||||
},
|
||||
"compiler": {
|
||||
"description": "Match the child compiler name.",
|
||||
|
|
|
@ -4361,16 +4361,6 @@ type IgnorePluginOptions =
|
|||
*/
|
||||
checkResource?: (resource: string, context: string) => boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
* Specify assertions on the imported module. If one of the assertion can't be met, the module will fail to import.
|
||||
*/
|
||||
declare interface ImportAssertions {
|
||||
/**
|
||||
* The module type.
|
||||
*/
|
||||
type?: "json";
|
||||
}
|
||||
declare interface ImportModuleOptions {
|
||||
/**
|
||||
* the target layer
|
||||
|
@ -9375,9 +9365,9 @@ declare interface RuleSetLogicalConditionsAbsolute {
|
|||
*/
|
||||
declare interface RuleSetRule {
|
||||
/**
|
||||
* Specify assertions on the imported module. If one of the assertion can't be met, the module will fail to import.
|
||||
* Match on import assertions of the dependency.
|
||||
*/
|
||||
assert?: ImportAssertions;
|
||||
assert?: { [index: string]: RuleSetConditionOrConditions };
|
||||
|
||||
/**
|
||||
* Match the child compiler name.
|
||||
|
|
Loading…
Reference in New Issue