Fixed alias-related type error in admin API routes#27091
Conversation
no ref
We effectively had code like this:
```js
router.del = router.delete;
// ...
router.del('/route', handler);
```
This causes type errors and will make our future TypeScript migration
slightly harder. Let's just use `router.delete`.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe admin routes file was updated to remove the custom 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
|



no ref
We effectively had code like this:
This causes type errors and will make our future TypeScript migration
slightly harder. Let's just use
router.delete.