Is it possible to generate typescript type definit...
# help
d
Is it possible to generate typescript type definitions for schemas other than public? I have a separate schema for user data (public schema) and business data; would be useful to get type safety on those tables as well!
n
Hello @Derek! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
s
Just wanted to follow up on this because I've been looking for a similar solution. https://github.com/kristiandupont/kanel lets me choose schemas and map custom db types and enums to primitive types. It requires your DB login details (as it goes directly to Postgres, rather than using the REST endpoint), but it generates the interfaces directly from the tables. I'm not sure if it types RPC functions or not - definitely worth investigating though