Is it possible to just use the types #500
Unanswered
RobinClowers
asked this question in
Q&A
Replies: 2 comments
-
I have similar need. I am developing a backend and fronted, both using TS. I would like to use the types generated in the backend (with pgtyped) in the front, for that I would be nice to split the current generated files in two parts. The first one would be the base types (used by the frontend), this would not depent on anything. The second file would include the base one to define de PreparedQueries. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@fjavierv I ended up using https://kysely.dev/, which worked out really well. |
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 have a pretty unique use case. The app I work on queries https://materialize.com/ over http, rather than making a direct pg connection. It would be great if I could just generate the types from queries and use them in my project, with requiring all the pg client stuff. I would imagine these things are fairly coupled, but I thought it was worth asking. I saw #394, which is in a similar vein, so it might be useful for other cases as well.
Beta Was this translation helpful? Give feedback.
All reactions