chore: Typescript Cleanup Part 2 of 3 for rule: ruleStub & launchPanelType: panelType#7289
Merged
v-prachin merged 7 commits intomicrosoft:mainfrom Apr 8, 2024
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
Typescript Cleanup Part 2 of 3
We have total 140 errors in 104 files. Thus, targeting each error and fixing it.
Motivation
Errors observed in below files observed after removing deprecated properties from tsconfig file:
1.rule: ruleStub
src/tests/unit/tests/injected/element-based-view-model-creator.test.ts (9)
scanNodeResults consists of unified results as well as ruleStub. So, using scanNodeResults to resolve the issue.
2.launchPanelType: panelType
src/popup/actions/popup-action-message-creator.ts(1)
src/tests/unit/tests/popup/actions/popup-action-message-creator.test.ts(1)
Added new type LaunchPanelTelemetryData in extension-telemetry-events.ts, to resolve the error for launchPanelType: panelType
Thus, total number of errors covered as part of this user story: 11
Context
Pull request checklist
yarn fastpassyarn test)<rootDir>/test-results/unit/coveragefix:,chore:,feat(feature-name):,refactor:). SeeCONTRIBUTING.md.