Skip to content

Commit 51fb9a6

Browse files
committed
docs: fix changelog typegen filepaths
1 parent c218c91 commit 51fb9a6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.changeset/typesafety.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
### Typesafety improvements
77

88
React Router now generates types for each of your route modules.
9-
You can access those types by importing them from `./+types/<route filename without extension>`.
9+
You can access those types by importing them from `./+types.<route filename without extension>`.
1010
For example:
1111

1212
```ts
1313
// app/routes/product.tsx
14-
import type * as Route from "./+types/product";
14+
import type * as Route from "./+types.product";
1515

1616
export function loader({ params }: Route.LoaderArgs) {}
1717

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,13 +458,13 @@ Also note that, if you were using Remix's `routes` option to define config-based
458458

459459
#### Typesafety improvements
460460

461-
React Router now generates types for each of your route modules and passes typed props to route module component exports ([#11961](https://github.com/remix-run/react-router/pull/11961), [#12019](https://github.com/remix-run/react-router/pull/12019)). You can access those types by importing them from `./+types/<route filename without extension>`.
461+
React Router now generates types for each of your route modules and passes typed props to route module component exports ([#11961](https://github.com/remix-run/react-router/pull/11961), [#12019](https://github.com/remix-run/react-router/pull/12019)). You can access those types by importing them from `./+types.<route filename without extension>`.
462462

463463
For example:
464464

465465
```ts
466466
// app/routes/product.tsx
467-
import type * as Route from "./+types/product";
467+
import type * as Route from "./+types.product";
468468

469469
export function loader({ params }: Route.LoaderArgs) {}
470470

packages/react-router-dev/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@
7575
- ### Typesafety improvements ([#12019](https://github.com/remix-run/react-router/pull/12019))
7676

7777
React Router now generates types for each of your route modules.
78-
You can access those types by importing them from `./+types/<route filename without extension>`.
78+
You can access those types by importing them from `./+types.<route filename without extension>`.
7979
For example:
8080

8181
```ts
8282
// app/routes/product.tsx
83-
import type * as Route from "./+types/product";
83+
import type * as Route from "./+types.product";
8484

8585
export function loader({ params }: Route.LoaderArgs) {}
8686

packages/react-router/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@
152152
- ### Typesafety improvements ([#12019](https://github.com/remix-run/react-router/pull/12019))
153153

154154
React Router now generates types for each of your route modules.
155-
You can access those types by importing them from `./+types/<route filename without extension>`.
155+
You can access those types by importing them from `./+types.<route filename without extension>`.
156156
For example:
157157

158158
```ts
159159
// app/routes/product.tsx
160-
import type * as Route from "./+types/product";
160+
import type * as Route from "./+types.product";
161161

162162
export function loader({ params }: Route.LoaderArgs) {}
163163

0 commit comments

Comments
 (0)