4 Replies
What exactly are you trying to do here, and what is wrong?
If you want the type for "any ArkType type instance", that would be
type.Any
(note the lowercase type)I want the type of a field to be an arktype object
So it can have
.toJsonSchema()
It sounds like you want
type.Any
then
Although technically not all types can be converted to json schema (e.g. types with custom morphs). But I'm not sure there is actually a type for "JSON Schema-able" atm, so type.Any
is as close as it getsthx❤️