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

Write types to a separate file #394

Open
dawsbot opened this issue Jan 31, 2022 · 0 comments
Open

Write types to a separate file #394

dawsbot opened this issue Jan 31, 2022 · 0 comments

Comments

@dawsbot
Copy link
Contributor

dawsbot commented Jan 31, 2022

When using pgtyped, we're given the functions to call and the TypeScript types in the same file. For consumption on a frontend, the sql libraries cannot be loaded, so doing a type-import causes compilation errors.

Has there been thought or work done to separate the generated types into a .types.ts file instead of functions and types together in the .ts output file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants