Search
Setup for Free
a
arktype
•
6mo ago
TaQuanMinhLong
object but not array
how do we declare a schema that only accepts plain json object like
{}
{}
or
{some: "key"}
{some: "key"}
but not
[]
[]
?
arktype
Join
This is a friendly space centered around ArkType, TypeScript's 1:1 validator (https://github.com/arktypeio/arktype)
855
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
{}
{}
{some: "key"}
{some: "key"}
[]
[]
Similar Threads
Creating array from another object
a
arktype / questions
2mo ago
Array/Object keys to type?
a
arktype / questions
3y ago
Stringified array
a
arktype / questions
7mo ago
Is there a good way to use an array of fields mapped from an object into array as string literals?
a
arktype / questions
10mo ago