How do I define a more complex object with convex values?
is there a way to define object like:
I know this is incorrect:
2 Replies
v.record is not supported yet.
We'll likely add a v.record for this in the future. For now the best work around is:
v.array(v.object({key: string, value: ....}))
or use v.any() as Validator<Record<string, Product>>
and rely on TypeScript for now.thank you