Replies: 2 comments
-
Anything on this ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Doing exactly this as well, any answers? |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working with Dirzzle ORM for PostgreSQL in TypeScript, and I'm trying to improve the type safety of my code. Specifically, I'm wondering if there's a way to infer the type of the
where
clause in a query, so that I can avoid usingany
in my function signatures.Here's an example of what I'm currently doing:
In this function, I'm using
condition?: any
to accept any type of condition for thewhere
clause. However, I'd like to replace any with a more specific type that corresponds to the actual type of the where clause.Beta Was this translation helpful? Give feedback.
All reactions