import { type } from "arktype"const Thing = type({ name: "string", "versions?": "(number | string)[]"})const out = Thing.assert({ name: "TypeScript", versions: ["5.8.2", 6, 7n]})
.assert