Is there an any type?

Hi there,

I wanted to use an arktype for some Typescript, eg:

type FormData = {
  id: string
  meta: any
}


The closest I can see is perhaps:

const FormDataType = type({
  id: 'string',
  meta: type('object').as<any>(),
})


I was previously using zod and was suprised not to see it in arktype eg

z.any(); // inferred type: 'any'
https://zod.dev/api?id=unknown

Interested if I am missing support for any somewhere in arktype, it would be much nicer to write:

const FormDataType = type({
  id: 'string',
  meta: 'any',
})
Was this page helpful?