I'm generating types using open-api npx command, does anyone have a strategy for managing types when querying foreign tables. I'm currently creating custom for these
y
Yonben
03/01/2022, 3:02 PM
I encountered the same issue and did the same as you tbh.
I also looked at other tools to generate typescript types from postgres and they all seem to reach that same conclusion
Yonben
03/01/2022, 3:03 PM
It seems very hard to understand and generate, even more to make TS Server understand that you're making a join, so none of the ones I found seem to support that nicely...
n
NinjaNuur
03/01/2022, 5:00 PM
Yeah that makes sense. I saw in the supabase site that they are building their own tools for generating types. Excited to see how that will work
Thanks for taking the time to respond
y
Yonben
03/01/2022, 5:12 PM
Oh I didn't see that actually, that sounds exciting!