How to derive a type from types generated by Prisma?
Hi,
The following TypeScript code snippet is working where I'm able to derive a type
May I know how to create the type outside of the function instead of defining the type
The following TypeScript code snippet is working where I'm able to derive a type
X from the query result from Prisma.May I know how to create the type outside of the function instead of defining the type
X on runtime in the function? Something like deriving the type from the database table types generated by Prisma and etc?