Allow null values in bundles min/max (#3950)

* Allow null values in bundles min/max

* Adjust bundle type definition

* Backwards compat

* Lenient types
This commit is contained in:
Jaco
2021-09-14 08:43:56 +02:00
committed by GitHub
parent 367efda128
commit febcabe109
4 changed files with 14 additions and 5 deletions
+2 -1
View File
@@ -46,7 +46,8 @@ export interface RegistryError {
}
export interface OverrideVersionedType {
minmax: [number?, number?]; // min (v >= min) and max (v <= max)
// min (v >= min) and max (v <= max)
minmax: [number | undefined | null, number | undefined | null] | [number?, number?] | (number | undefined | null)[];
types: RegistryTypes;
}