arktype@2.0.0-dev.26
Pre-release
Pre-release
·
1 commit
to main
since this release
Improved string default parsing
String defaults are now parsed more efficiently by the core string parser. They can include arbitrary whitespace and give more specific errors.
Fix a resolution issue on certain cyclic unions
// Now resolves correctly
const types = scope({
TypeWithKeywords: "ArraySchema",
Schema: "number|ArraySchema",
ArraySchema: {
"additionalItems?": "Schema"
}
}).export()