fix: remove deprecated @ts-ignore in federation-matrix#38557
fix: remove deprecated @ts-ignore in federation-matrix#38557mdawoud27 wants to merge 2 commits intoRocketChat:developfrom
@ts-ignore in federation-matrix#38557Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
WalkthroughTypeScript ignore directives are removed from AJV-generated validators in federation matrix API modules. Additionally, a test is made more defensive by replacing a non-null assertion with a conditional guard, preventing potential runtime errors. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
💤 Files with no reviewable changes (2)
🧰 Additional context used📓 Path-based instructions (2)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
**/*.spec.ts📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
🧠 Learnings (7)📓 Common learnings📚 Learning: 2025-10-28T16:53:42.761ZApplied to files:
📚 Learning: 2025-11-27T17:56:26.050ZApplied to files:
📚 Learning: 2025-11-24T17:08:17.065ZApplied to files:
📚 Learning: 2025-09-25T09:59:26.461ZApplied to files:
📚 Learning: 2025-12-09T20:01:00.324ZApplied to files:
📚 Learning: 2025-11-04T16:49:19.107ZApplied to files:
✏️ Tip: You can disable this entire section by setting 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 |
Proposed changes (including videos or screenshots)
Improved type safety in
@rocket.chat/federation-matrixby removing deprecated@ts-ignorecomments and fixing a non-null assertion.Issue(s)
N/A
Steps to test or reproduce
Run lint to verify warnings are fixed:
Expected result: Exit code 0, no warnings (previously had 7 warnings)
Run tests to ensure no functionality broke
Expected result: All 82 tests pass
Summary by CodeRabbit
Chores
Tests