Michal Srb
Michal Srb16mo ago

Using TypeScript types for schema definition

@Mohamed EL GUARIR asks: Hello, Is there any way to use typescript types in the schema definition since i already created them using ts ?
1 Reply
Michal Srb
Michal SrbOP16mo ago
Hey @Mohamed EL GUARIR , the schema needs to be expressed using the v validators because not all TypeScript types are supported (and we don't have a translation algorithm from TS to validators). That said the translation should be pretty straightforward, as our validators map to basic TypeScript pretty neatly!