Skip to content

Commit

Permalink
feat: export type NavLinkRenderProps (#11553)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeromask1337 committed Jun 18, 2024
1 parent 4e85e98 commit d73c1f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/six-pianos-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router-dom": patch
---

Export `NavLinkRenderProps` type for easier typing of custom `NavLink` callback
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,4 @@
- yracnet
- yuleicul
- zheng-chuang
- zeromask1337
2 changes: 1 addition & 1 deletion packages/react-router-dom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ if (__DEV__) {
Link.displayName = "Link";
}

type NavLinkRenderProps = {
export type NavLinkRenderProps = {
isActive: boolean;
isPending: boolean;
isTransitioning: boolean;
Expand Down

0 comments on commit d73c1f6

Please sign in to comment.