Skip to content

Commit 09aa24f

Browse files
authored
feat: export NavigationType enum as value. (#8529)
1 parent bef3166 commit 09aa24f

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- kddnewton
1010
- kentcdodds
1111
- kkirsche
12+
- latin-1
1213
- liuhanqu
1314
- markivancho
1415
- mcansh

packages/react-router-dom/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ export {
7676
useOutletContext,
7777
};
7878

79+
export { NavigationType } from "react-router";
7980
export type {
8081
Location,
8182
Path,
8283
To,
83-
NavigationType,
8484
MemoryRouterProps,
8585
NavigateFunction,
8686
NavigateOptions,

packages/react-router-native/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export {
6868
useOutletContext,
6969
};
7070

71+
export { NavigationType } from "react-router";
7172
export type {
7273
IndexRouteProps,
7374
LayoutRouteProps,
@@ -76,7 +77,6 @@ export type {
7677
NavigateFunction,
7778
NavigateOptions,
7879
NavigateProps,
79-
NavigationType,
8080
Navigator,
8181
OutletProps,
8282
Params,

packages/react-router/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import {
1313
parsePath,
1414
} from "history";
1515

16-
export type { Location, Path, To, NavigationType };
16+
export { NavigationType };
17+
export type { Location, Path, To };
1718

1819
function invariant(cond: any, message: string): asserts cond {
1920
if (!cond) throw new Error(message);

0 commit comments

Comments
 (0)