refactor: remove stale type declarations - #41812
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
|
/jira ARCH |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan includes up to 10 reviews per rolling hour; 8 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (3)
WalkthroughThis PR moves application interfaces into dedicated definition modules, updates their consumers, removes obsolete ambient declarations, and adjusts OAuth and HTTP typings. The described runtime behavior remains unchanged. ChangesType declaration cleanup
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change removes stale type declarations and an unused dependency without altering product behavior; no actionable merge-blocking risk remains after normal checks and review. Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #41812 +/- ##
===========================================
- Coverage 69.07% 69.06% -0.01%
===========================================
Files 4229 4229
Lines 166246 166247 +1
Branches 29611 29567 -44
===========================================
- Hits 114829 114825 -4
+ Misses 46268 46262 -6
- Partials 5149 5160 +11
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
80b6d06 to
b18e0f2
Compare
Proposed changes (including videos or screenshots)
Housekeeping pass over stale type declarations, mostly on the client side and on the ambient
.d.tsfiles underapps/meteor/definition/externals.declare module 'meteor/...'files (and a few non-Meteor ones) declared packages that are no longer imported anywhere:babel-compiler,htmljs,jalik-ufs-methods,logging,mystor-device-detection,webapp-hashing,ddp-common,less-plugin-autoprefixer,less/browser, plus dead members inaccounts-base,mongodb,urlandostrio-cookies.meteor.d.ts,webapp.d.ts).client/definitions/global.d.tsshrank considerably; what was still referenced moved to proper modules.IOrchestrator.tsinterfaces,IAppExternalURL,ICategory, marketplaceISettings/AppInfo, andIRoutingManagerConfig(now underserver/lib/omnichannel/routing/) live next to the code that uses them;service-configuration.d.tsmoved underexternals/meteor/.asterisk-managerdependency along with its declaration file — nothing imports it.No behavior change: this is types and dead-declaration removal only, plus one unused runtime dependency.
Issue(s)
n/a
Steps to test or reproduce
yarn typecheck/ CI build — the point is that nothing else has to change.Further comments
The
externalsfolder had accumulated declarations for Meteor packages that were dropped over time; keeping them around meant TypeScript happily accepted imports of modules that no longer exist. Removing them makes those mistakes compile errors again.Task: ARCH-2381
Summary by CodeRabbit
Summary by CodeRabbit