arktype
2.2.9 · 20 Oct 2026MIT3.4M / weekRepositoryHomepagenpmAtom feed
Your version
2.2.9 is the newest release of 2.x.
In short
3 fixed1 changed
Release note
The section about arktype of a note shared by several packages.
Fix an issue causing some unions with
onUndeclaredKey: "reject"to reject valid dataFix an issue where Types containing arrays were incorrectly treated as including morphs, leading to some unnecessary validation overhead
Fix an issue causing objects containing functions like
() => neverthat are subtypes ofInferredMorphto be incorrectly treated as morphsFail early with a
ParseErrorifinstanceOfoperand is not actually a function at runtime