Skip to content

Commit c7a19e2

Browse files
committed
revert unrelated changes
1 parent 9c5b77c commit c7a19e2

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

packages/react-router-dom/server.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import {
77
invariant,
88
} from "@remix-run/router";
99
import {
10+
Location,
11+
To,
1012
createPath,
1113
parsePath,
1214
Router,
@@ -15,7 +17,6 @@ import {
1517
UNSAFE_DataRouterContext as DataRouterContext,
1618
UNSAFE_DataRouterStateContext as DataRouterStateContext,
1719
} from "react-router-dom";
18-
import type { Location, To } from "react-router-dom";
1920

2021
export interface StaticRouterProps {
2122
basename?: string;

packages/react-router/lib/components.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ import {
2222
} from "@remix-run/router";
2323
import { useSyncExternalStore as useSyncExternalStoreShim } from "./use-sync-external-store-shim";
2424

25-
import type { Navigator } from "./context";
2625
import {
26+
LocationContext,
27+
NavigationContext,
28+
Navigator,
2729
DataRouterContext,
2830
DataRouterStateContext,
29-
NavigationContext,
30-
LocationContext,
3131
} from "./context";
3232
import {
3333
useInRouterContext,
@@ -48,7 +48,7 @@ let routerSingleton: DataRouter;
4848
* @private
4949
*/
5050
export function _resetModuleScope() {
51-
// @ts-ignore
51+
// @ts-expect-error
5252
routerSingleton = null;
5353
}
5454

packages/router/router.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { createPath } from "./history";
2-
import type { History, Location, Path, To } from "./history";
1+
import { createPath, History, Location, Path, To } from "./history";
32
import { Action as HistoryAction, createLocation, parsePath } from "./history";
43

5-
import { invariant } from "./utils";
6-
import type {
4+
import {
75
DataRouteObject,
86
FormEncType,
97
FormMethod,
8+
invariant,
109
RouteMatch,
1110
RouteObject,
1211
Submission,

0 commit comments

Comments
 (0)