Skip to content

arktype@2.0.0-dev.26

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 24 Jun 22:18
· 1 commit to main since this release
90fe9bf

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()