Skip to content

chore: Typescript Cleanup Part 2 of 3 for rule: ruleStub & launchPanelType: panelType#7289

Merged
v-prachin merged 7 commits intomicrosoft:mainfrom
v-prachin:typescript-cleanup-part4
Apr 8, 2024
Merged

chore: Typescript Cleanup Part 2 of 3 for rule: ruleStub & launchPanelType: panelType#7289
v-prachin merged 7 commits intomicrosoft:mainfrom
v-prachin:typescript-cleanup-part4

Conversation

@v-prachin
Copy link
Copy Markdown
Contributor

@v-prachin v-prachin commented Mar 27, 2024

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

  • Addresses an existing issue: #(chore: Remove deprecated TypeScript options #6611)
  • Ran yarn fastpass
  • Added/updated relevant unit test(s) (and ran yarn test)
  • Verified code coverage for the changes made. Check coverage report at: <rootDir>/test-results/unit/coverage
  • PR title AND final merge commit title both start with a semantic tag (fix:, chore:, feat(feature-name):, refactor:). See CONTRIBUTING.md.
  • [n/a] (UI changes only) Added screenshots/GIFs to description above
  • [n/a] (UI changes only) Verified usability with NVDA/JAWS

@v-prachin v-prachin marked this pull request as ready for review April 2, 2024 14:52
@v-prachin v-prachin requested a review from a team as a code owner April 2, 2024 14:52
Copy link
Copy Markdown
Contributor

@madalynrose madalynrose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@v-prachin v-prachin merged commit a490e21 into microsoft:main Apr 8, 2024
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

Successfully merging this pull request may close these issues.

2 participants