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

Support type imports / exports in Transpiler.scan #12202

Open
ArnaudBarre opened this issue Jun 27, 2024 · 0 comments
Open

Support type imports / exports in Transpiler.scan #12202

ArnaudBarre opened this issue Jun 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ArnaudBarre
Copy link
Contributor

What is the problem this feature would solve?

I'm writing a codegen that generates types for my ORM from manually defined types for JSON fields. I would like to quickly extract the available types from some source files in my codebase.

What is the feature you are proposing to solve the problem?

Adding an options?: { withTypes?: boolean } to the Transpiler.scan method (maybe scanImports too?)

What alternatives have you considered?

Because es-module-lexer doesn't support TS, the only other solution is too run a full TS AST parser, which mean probably Babel.

@ArnaudBarre ArnaudBarre added the enhancement New feature or request label Jun 27, 2024
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