Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to Generate Typescript Type Declarations from Server Schema #153

Open
Marviel opened this issue Apr 2, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@Marviel
Copy link

Marviel commented Apr 2, 2022

Feature request

As a client, I would like to generate typescript definitions for my supabase realtime client -- call it the Typed-SDK -- based on the current schema in my postgres database.

I would also like to have the option to be notified when the types I am trying to use are "out of date" with the database's current schema types.

Describe the solution you'd like

  • I believe in order for this to work, there would need to be some type of CLI command. Similar to how Graphql Codegen handles this.
  • These types could get out of date with the schema in the database, so I would like to have the ability to get (disable-able) warnings whenever my current typed-SDK is out of sync with the server. I believe this could be done by a command which would get the hash of the current (Public) schema.

Additional context

@Marviel Marviel added the enhancement New feature or request label Apr 2, 2022
@Marviel Marviel changed the title Ability to Generate Typescript Declarations Ability to Generate Typescript Type Declarations from Server Schema Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant