Replies: 1 comment
-
I found that whether export type DatabaseType = typeof database;
export type TransactionType = Parameters<Parameters<DatabaseType['transaction']>[0]>[0]; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m using Drizzle ORM and need to pass the transaction object (
tx
) to another function. Currently, I have definedtx
asany
, but I’d like to replace it with the correct, type-safe version.Here’s an example of my function:
Beta Was this translation helpful? Give feedback.
All reactions