Skip to content

Commit 4221866

Browse files
authored
docs: fix grammar (#14000)
1 parent 60ffc53 commit 4221866

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ We manage release notes in this file instead of the paginated Github Releases Pa
100100
- [Exposed Router Promises](#exposed-router-promises)
101101
- [Other Notable Changes](#other-notable-changes)
102102
- [`routes.ts`](#routests)
103-
- [Typesafety improvements](#typesafety-improvements)
103+
- [Type-safety improvements](#type-safety-improvements)
104104
- [Prerendering](#prerendering)
105105
- [Major Changes (`react-router`)](#major-changes-react-router)
106106
- [Major Changes (`@react-router/*`)](#major-changes-react-router-1)
@@ -1860,7 +1860,7 @@ Also note that, if you were using Remix's `routes` option to define config-based
18601860
+];
18611861
```
18621862

1863-
#### Typesafety improvements
1863+
#### Type-safety improvements
18641864

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

docs/start/modes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ ReactDOM.createRoot(root).render(
5656

5757
Framework Mode wraps Data Mode with a Vite plugin to add the full React Router experience with:
5858

59-
- typesafe `href`
60-
- typesafe Route Module API
59+
- type-safe `href`
60+
- type-safe Route Module API
6161
- intelligent code splitting
6262
- SPA, SSR, and static rendering strategies
6363
- and more
@@ -71,7 +71,7 @@ export default [
7171
];
7272
```
7373

74-
You'll then have access to the Route Module API with typesafe params, loaderData, code splitting, SPA/SSR/SSG strategies, and more.
74+
You'll then have access to the Route Module API with type-safe params, loaderData, code splitting, SPA/SSR/SSG strategies, and more.
7575

7676
```ts filename=product.tsx
7777
import { Route } from "+./types/product.tsx";

docs/upgrading/component-routes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The React Router Vite plugin adds framework features to React Router. This guide
1616
The Vite plugin adds:
1717

1818
- Route loaders, actions, and automatic data revalidation
19-
- Typesafe Routes Modules
19+
- Type-safe Routes Modules
2020
- Automatic route code-splitting
2121
- Automatic scroll restoration across navigations
2222
- Optional Static pre-rendering

docs/upgrading/remix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ Congratulations! You are now on React Router v7. Go ahead and run your applicati
394394
[v2-future-flags]: https://remix.run/docs/start/future-flags
395395
[routing]: ../start/framework/routing
396396
[fs-routing]: ../how-to/file-route-conventions
397-
[v7-changelog-types]: https://github.com/remix-run/react-router/blob/release-next/CHANGELOG.md#typesafety-improvements
397+
[v7-changelog-types]: https://github.com/remix-run/react-router/blob/release-next/CHANGELOG.md#type-safety-improvements
398398
[server-loaders]: ../start/framework/data-loading#server-data-loading
399399
[server-actions]: ../start/framework/actions#server-actions
400400
[ts-module-augmentation]: https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation

docs/upgrading/router-provider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The React Router Vite plugin adds framework features to React Router. This guide
1414
The Vite plugin adds:
1515

1616
- Route loaders, actions, and automatic data revalidation
17-
- Typesafe Routes Modules
17+
- Type-safe Routes Modules
1818
- Automatic route code-splitting
1919
- Automatic scroll restoration across navigations
2020
- Optional Static pre-rendering

0 commit comments

Comments
 (0)