EggsDeeE
Convex Community10mo ago
1 reply
EggsDee

Validator record types with literals as keys.

Is it possible to create convex validator types such as
type player = Record<"str" | "dex" | "int", number>

There is a record type in convex but I'm running into schema validation issues when using literals as keys instead of strings.
Was this page helpful?