-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix: remove extra imports for mixin dependencies #1641
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YAY for this finally being fixed with TypeScript. 😍
Hmm, I need to fix few more files:
|
With the new TypeScript version, it is no longer necessary to manually import types referenced by mixin classes. This commit removes those extra imports from the CLI template and scaffolded "application.ts" files; and also sorts import using VS Code's feature "Organize imports". While removing unused imports, I cleaned up few more places where we were importing extra types.
7bac8d8
to
0fc1e93
Compare
"include": [ | ||
"benchmark", | ||
"examples", | ||
"packages" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have sorted the entries alphabetically.
The patch is ready for the final review and landing. @strongloop/sq-lb-apex @raymondfeng PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
With the new TypeScript version, it is no longer necessary to manually import types referenced by mixin classes.
This commit removes those extra imports from the CLI template and scaffolded "application.ts" files; and also sorts import using VS Code's feature "Organize imports".
I have discovered this opportunity while working on service-registration mixin (#1439).
Checklist
npm test
passes on your machinepackages/cli
were updatedexamples/*
were updated