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

table named "import" breaks generated types #141

Open
scottbessler opened this issue Feb 13, 2023 · 2 comments
Open

table named "import" breaks generated types #141

scottbessler opened this issue Feb 13, 2023 · 2 comments

Comments

@scottbessler
Copy link

I have a table named "import" that ends up generating the following invalid .d.ts:

    export namespace import {
         ....
    }
@jawj
Copy link
Owner

jawj commented Feb 15, 2023

Hmm. I can see that this would happen. Unfortunately, I'm not sure there's any straightforward way to fix it.

@scottbessler
Copy link
Author

hmm i think i'd either prefix/suffix to make it not a reserved word or add a config that allows you to provide an alternative name for a table

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

No branches or pull requests

2 participants