@sinclair/typebox
Advanced tools
Comparing version 0.20.2 to 0.20.3
{ | ||
"name": "@sinclair/typebox", | ||
"version": "0.20.2", | ||
"version": "0.20.3", | ||
"description": "JSONSchema Type Builder with Static Type Resolution for TypeScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -91,4 +91,4 @@ export declare const ReadonlyOptionalModifier: unique symbol; | ||
type: 'array'; | ||
items: [...T]; | ||
additionalItems: false; | ||
items?: [...T]; | ||
additionalItems?: false; | ||
minItems: number; | ||
@@ -95,0 +95,0 @@ maxItems: number; |
@@ -102,3 +102,5 @@ "use strict"; | ||
const maxItems = items.length; | ||
return { ...options, kind: exports.TupleKind, type: 'array', items, additionalItems, minItems, maxItems }; | ||
return (items.length > 0) | ||
? { ...options, kind: exports.TupleKind, type: 'array', items, additionalItems, minItems, maxItems } | ||
: { ...options, kind: exports.TupleKind, type: 'array', minItems, maxItems }; | ||
} | ||
@@ -105,0 +107,0 @@ /** `STANDARD` Creates a `object` schema with the given properties. */ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88597
620