Is there a way to get the type of a schema?
Let's say I have a schema defined in
schema.ts
. Is it possible to use their types for my own custom functions or utilities?3 Replies
You've got a couple options, the simplest is
Doc<"tablename">
Thanks @ballingt !
TypeScript | Convex Developer Hub
Move faster with end-to-end type safety.