little schema fixes
This commit is contained in:
parent
87e6f58786
commit
df81e14447
|
@ -72,11 +72,7 @@ export type AuxiliaryComment = string | LibraryCustomUmdCommentObject;
|
|||
/**
|
||||
* Specify which export should be exposed as library.
|
||||
*/
|
||||
export type LibraryExport = string | ArrayOfStringValues;
|
||||
/**
|
||||
* Array of strings.
|
||||
*/
|
||||
export type ArrayOfStringValues = string[];
|
||||
export type LibraryExport = string | string[];
|
||||
/**
|
||||
* The name of the library (some types allow unnamed libraries too).
|
||||
*/
|
||||
|
@ -145,6 +141,10 @@ export type ExternalItem =
|
|||
| boolean;
|
||||
}
|
||||
| RegExp;
|
||||
/**
|
||||
* Array of strings.
|
||||
*/
|
||||
export type ArrayOfStringValues = string[];
|
||||
/**
|
||||
* Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).
|
||||
*/
|
||||
|
@ -890,7 +890,7 @@ export interface LibraryCustomUmdObject {
|
|||
/**
|
||||
* Name of the property exposed globally by a UMD library.
|
||||
*/
|
||||
root?: string | ArrayOfStringValues;
|
||||
root?: string | string[];
|
||||
}
|
||||
/**
|
||||
* Enables/Disables experiments (experiemental features with relax SemVer compatibility).
|
||||
|
|
|
@ -612,7 +612,8 @@
|
|||
"tsType": "RegExp"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"absolutePath": false
|
||||
},
|
||||
{
|
||||
"instanceof": "Function",
|
||||
|
@ -761,20 +762,28 @@
|
|||
"properties": {
|
||||
"amd": {
|
||||
"description": "Name of the exposed AMD library in the UMD.",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"commonjs": {
|
||||
"description": "Name of the exposed commonjs export in the UMD.",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"root": {
|
||||
"description": "Name of the property exposed globally by a UMD library.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/ArrayOfStringValues"
|
||||
"type": "array",
|
||||
"items": {
|
||||
"description": "Part of the name of the property exposed globally by a UMD library.",
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -784,10 +793,16 @@
|
|||
"description": "Specify which export should be exposed as library.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/ArrayOfStringValues"
|
||||
"type": "array",
|
||||
"items": {
|
||||
"description": "Part of the export that should be exposed as library.",
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -795,13 +810,15 @@
|
|||
"description": "The name of the library (some types allow unnamed libraries too).",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"description": "A part of the library name.",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue