We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
index
Often exports are re-exported from an index.ts/js file, adding such exports manually is a bit tedious.
index.ts
js
Provide a refactorings on exported values if an index file in the same directory exists and does not already export the value.
Add export * to index.ts/js
export * from './<current-file>';
Add named export to index.ts/js
export { <current-symbol> } from './<current-file>';
Extension of index could probably be resolved dynamically.
For default exports, adding a named export should prompt for a name and create:
export { default as <provided-name> } from './<current-file>';
The prompt could be pre-filled with the file name (without extension).
N/A
The text was updated successfully, but these errors were encountered:
Dope! I can relate to this very issue as I had to do this recently with some Firebase functions that had to be exposed in the main index.ts 😁
Definitely adding this idea to "things to do next".
Sorry, something went wrong.
I suppose if no index exists yet, the refactorings could also create one 🤔
nicoespeon
No branches or pull requests
Is this request related to a problem? Please describe.
Often exports are re-exported from an
index.ts
/js
file, adding such exports manually is a bit tedious.Describe the solution you'd like
Provide a refactorings on exported values if an
index
file in the same directory exists and does not already export the value.Add export * to index.ts/js
- Addsexport * from './<current-file>';
to the indexAdd named export to index.ts/js
- Addsexport { <current-symbol> } from './<current-file>';
to the indexExtension of
index
could probably be resolved dynamically.For default exports, adding a named export should prompt for a name and create:
The prompt could be pre-filled with the file name (without extension).
Additional context
N/A
The text was updated successfully, but these errors were encountered: