arktype
2.2.9 · 20 Oct 2026MIT3.4M / weekRepositoryHomepagenpmAtom feed
Your version
2.2.9 is the newest release of 2.x.
Release note
The section about arktype of a note shared by several packages.
Fix an issue causing metatypes like Default and Out to not be extracted from some recursive definitions:
const T = type({
defaulted: "number = 0",
"nested?": "this"
})
const t = T.assert({})
// old: Default<number, 0> | undefined
// new: number | undefined
t.nested?.defaulted