Skip to content

Commit

Permalink
feat: export NavigationType enum as value. (#8529)
Browse files Browse the repository at this point in the history
  • Loading branch information
latin-1 authored Feb 27, 2022
1 parent bef3166 commit 09aa24f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- kddnewton
- kentcdodds
- kkirsche
- latin-1
- liuhanqu
- markivancho
- mcansh
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-dom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ export {
useOutletContext,
};

export { NavigationType } from "react-router";
export type {
Location,
Path,
To,
NavigationType,
MemoryRouterProps,
NavigateFunction,
NavigateOptions,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-native/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export {
useOutletContext,
};

export { NavigationType } from "react-router";
export type {
IndexRouteProps,
LayoutRouteProps,
Expand All @@ -76,7 +77,6 @@ export type {
NavigateFunction,
NavigateOptions,
NavigateProps,
NavigationType,
Navigator,
OutletProps,
Params,
Expand Down
3 changes: 2 additions & 1 deletion packages/react-router/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import {
parsePath,
} from "history";

export type { Location, Path, To, NavigationType };
export { NavigationType };
export type { Location, Path, To };

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

0 comments on commit 09aa24f

Please sign in to comment.