Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: Remove entry.client.tsx and update tsconfig for improved ty…
…pe handling
  • Loading branch information
bryanjtc committed Oct 25, 2024
commit 697a871063b2e74d6b8d23b08f8c41c687a2d3ca
12 changes: 0 additions & 12 deletions examples/react-router-7-app/app/entry.client.tsx

This file was deleted.

1 change: 0 additions & 1 deletion examples/react-router-7-app/app/routes/_index/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
QueryClient,
dehydrate,
} from "@tanstack/react-query";
import React from "react";
import {
UseFindPetsKeyFn,
useAddPet,
Expand Down
56 changes: 27 additions & 29 deletions examples/react-router-7-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,33 @@
{
"include": [
"**/*.ts",
"**/*.tsx",
"**/.server/**/*.ts",
"**/.server/**/*.tsx",
"**/.client/**/*.ts",
"**/.client/**/*.tsx",
".react-router/types/**/*"
],
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"lib": ["DOM", "DOM.Iterable", "ES2022"],
"types": ["@react-router/node", "vite/client"],
"isolatedModules": true,
"esModuleInterop": true,
"jsx": "react-jsx",
"module": "ESNext",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"target": "ES2022",
"strict": true,
"allowJs": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"paths": {
"~/*": ["./app/*"]
},
"noEmit": true,
"jsx": "react-jsx"
},
"include": [
"src",
"app/root.tsx",
"app/entry.client.tsx",
"queryClient.tsx",
"ClientFetchWrapper.tsx",
"fetchClient.ts",
"app/routes.ts",
"vite-env.d.ts",
"providers.tsx"
],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}
"rootDirs": [".", "./.react-router/types"],
"plugins": [{ "name": "@react-router/dev" }]
}
}