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 JSDoc and go-to definition for unparsed keys
Addresses #1294
const T = type({
/** FOO */
foo: "string",
/** BAR */
bar: "number?"
})
const out = T.assert({ foo: "foo" })
// go-to definition will now navigate to the foo prop from the type call
// hovering foo now displays "FOO"
console.log(out.foo)
// go-to definition will now navigate to the bar prop from the type call
// hovering bar now displays "BAR"
// (the ? must be in the value for this to work)
console.log(out.bar)