Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How can I validate a `Set` of certain item type? - arktype
a
arktype
•
12mo ago
•
2 replies
winterbolt
How can I validate a `Set` of certain item type?
Hello
,
I am trying to create a schema that validates that a property is a set of strings
:
const
schema
=
type
({
items:
"Set<string>"
});
const
schema
=
type
({
items:
"Set<string>"
});
But that gives me an error
.
I checked the docs
, and nothing seems to cover Maps or Sets
.
Am I missing something
, or aren
't they supported
?
Thanks
.
arktype
Join
This is a friendly space centered around ArkType, TypeScript's 1:1 validator (https://github.com/arktypeio/arktype)
860
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Can scopes validate?
a
arktype / questions
3y ago
How to set a custom message with object type?
a
arktype / questions
13mo ago
How to validate that a value is an instance of a class
a
arktype / questions
3y ago
How can I clone/make a new type without caching?
a
arktype / questions
5mo ago