Repository navigation
feat(types): export RouterLinkSlotScope type - #2917
Conversation
Expose the type of RouterLink's default slot scope so it can be reused in custom link components.
✅ Deploy Preview for vue-router canceled.
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2917 +/- ##
=======================================
Coverage 91.89% 91.89%
=======================================
Files 79 79
Lines 6602 6602
Branches 2197 2175 -22
=======================================
Hits 6067 6067
Misses 482 482
Partials 53 53 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
* feat(types): export RouterLinkSlotScope type Expose the type of RouterLink's default slot scope so it can be reused in custom link components. * refactor: review --------- Co-authored-by: Eduardo San Martin Morote <posva13@gmail.com>
I would benefit from being able to import this slot scope type
Summary by CodeRabbit
RouterLinkSlotScopetype to the main and experimental package exports. TypeScript users can use it to describe the scope provided to aRouterLinkdefault slot, including when typing slot callbacks.RouterLinkPropsTypedfor use in TypeScript applications.