Skip to content

Commit

Permalink
docs: fix changelog typegen filepaths
Browse files Browse the repository at this point in the history
  • Loading branch information
brookslybrand committed Oct 9, 2024
1 parent c218c91 commit 51fb9a6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .changeset/typesafety.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
### Typesafety improvements

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

```ts
// app/routes/product.tsx
import type * as Route from "./+types/product";
import type * as Route from "./+types.product";

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

Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,13 +458,13 @@ Also note that, if you were using Remix's `routes` option to define config-based

#### Typesafety improvements

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>`.
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>`.

For example:

```ts
// app/routes/product.tsx
import type * as Route from "./+types/product";
import type * as Route from "./+types.product";

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

Expand Down
4 changes: 2 additions & 2 deletions packages/react-router-dev/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@
- ### Typesafety improvements ([#12019](https://github.com/remix-run/react-router/pull/12019))

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

```ts
// app/routes/product.tsx
import type * as Route from "./+types/product";
import type * as Route from "./+types.product";

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

Expand Down
4 changes: 2 additions & 2 deletions packages/react-router/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@
- ### Typesafety improvements ([#12019](https://github.com/remix-run/react-router/pull/12019))

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

```ts
// app/routes/product.tsx
import type * as Route from "./+types/product";
import type * as Route from "./+types.product";
export function loader({ params }: Route.LoaderArgs) {}
Expand Down

0 comments on commit 51fb9a6

Please sign in to comment.