Skip to content

Commit b2c8312

Browse files
committed
docs: fix imports for typegen'd types
1 parent ab98426 commit b2c8312

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/how-to/resource-routes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ route("/reports/pdf/:id", "pdf-report.ts");
1717
```
1818

1919
```tsx filename=pdf-report.ts
20-
import * as Route from "./+types/pdf-report";
20+
import type { Route } from "./+types/pdf-report";
2121

2222
export async function loader({ params }: Route.LoaderArg) {
2323
const report = await getReport(params.id);

docs/how-to/suspense.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ React Router supports React Suspense by returning promises from loaders and acti
1313
React Router awaits route loaders before rendering route components. To unblock the loader for non-critical data, return the promise instead of awaiting it in the loader.
1414

1515
```tsx
16-
import * as Route from "./+types/my-route";
16+
import type { Route } from "./+types/my-route";
1717

1818
export async function loader({}: Route.LoaderArg) {
1919
// note this is NOT awaited

0 commit comments

Comments
 (0)