Repository navigation
types: declare pathname on ProxyTargetDetailed - #152
Conversation
setupOutgoing reads target.pathname for plain-object targets via a (target as URL) cast (_utils.ts L156). Declaring the field on the interface lets consumers set it without the type error or mirroring the cast.
📝 WalkthroughWalkthroughThe exported ChangesProxy target type update
Estimated review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 |
pathname on ProxyTargetDetailed
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #152 +/- ##
=======================================
Coverage 94.94% 94.94%
=======================================
Files 8 8
Lines 791 791
Branches 325 325
=======================================
Hits 751 751
Misses 35 35
Partials 5 5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
setupOutgoingalready readstarget.pathnameforProxyTargetDetailedtargets — it just uses a(target as URL)cast in_utils.ts:156to silence the type error. Declaring the field on the interface so consumers passing a plain object can set it directly.Summary by CodeRabbit