twendy1T
Convex Community2y ago
2 replies
twendy1

Shared types in Schema

Hello, is it possible to create some sort of shared type (something like interface from TS) for Convex schema? I have the same fields in table schema and in the mutation params but it still different from Doc<...>, so I was wondering if I can somehow combine them into 1 generic type and share between mutation and DB schema. Otherwise right now I need to change types in both places.
Was this page helpful?