Replies: 1 comment 1 reply
-
|
If |
Beta Was this translation helpful? Give feedback.
1 reply
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 currently need to use
SelectResultto type a function argument, but this type is only available from the generated types file:My use case is for a generic GridView component, for the server side part.
I give it a
query, it add sorts, pagination, filtering, and return the result set initems.I want
itemsto be inferred correctly from my selection inqueryUsage:
With
SelectResult(found by following links in my IDE),itemsseems correctly typed (although it seems to duplicate the returned types and change keys orders)Questions:
Is there something in
"drizzle-orm"I should be using instead of a type from a generated file, or should I open a feature request to have it properly exported?I just know I typed my helper like a 🙈 and would appreciate pointers to do it better, avoiding
anys, ..Should I be using
MySqlXxxtypes, or is there a non-dbms-specific equivalent ?Thanks 🙏🏼
Beta Was this translation helpful? Give feedback.
All reactions