Skip to content

Commit

Permalink
Update route-module-type-safety.md
Browse files Browse the repository at this point in the history
  • Loading branch information
coryhouse authored Nov 24, 2024
1 parent 87f8165 commit 19f5a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/how-to/route-module-type-safety.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ React Router generates types into a `.react-router/` directory at the root of yo

## 2. Include the generated types in tsconfig

Edit your tsconfig to get TypeScript to use the generated types. Additionally, `rootDirs` needs to be configured so the types can be imported as relative siblings to route modules.
Edit tsconfig.app.json to get TypeScript to use the generated types. Additionally, `rootDirs` needs to be configured so the types can be imported as relative siblings to route modules.

```json filename=tsconfig.json
```json filename=tsconfig.app.json
{
"include": [".react-router/types/**/*"],
"compilerOptions": {
Expand Down

0 comments on commit 19f5a1f

Please sign in to comment.