Skip to content

Commit 40feed0

Browse files
committed
Various optimizations
1 parent b05ee78 commit 40feed0

6 files changed

Lines changed: 9 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"@testing-library/user-event": "^14.6.1",
2323
"@types/node": "^25.3.3",
2424
"@types/react": "^19.2.14",
25+
"@types/react-dom": "^19.2.3",
2526
"@vitejs/plugin-react": "^5.1.4",
2627
"@vitest/coverage-v8": "^4.0.18",
2728
"babel-plugin-react-compiler": "1.0.0",

src/components/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
interface LayoutProps {
2-
children: React.ReactElement;
2+
children: React.ReactNode;
33
}
44

55
const Layout = ({ children }: LayoutProps) => {

src/utils/rtl-wrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { render as rtlRender } from "@testing-library/react";
22
import { RenderOptions, RenderResult } from "@testing-library/react";
33
import { HashRouter } from "react-router-dom";
44

5-
const RouterWrapper = ({ children }: { children: React.ReactElement }) => {
5+
const RouterWrapper = ({ children }: { children: React.ReactNode }) => {
66
return <HashRouter>{children}</HashRouter>;
77
};
88

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"paths": {
77
"@/*": ["./src/*"]
88
},
9-
"strictNullChecks": true,
9+
"strict": true,
1010
"target": "esnext"
1111
},
1212
"include": [

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,11 @@
798798
dependencies:
799799
undici-types "~7.18.0"
800800

801+
"@types/react-dom@^19.2.3":
802+
version "19.2.3"
803+
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-19.2.3.tgz#c1e305d15a52a3e508d54dca770d202cb63abf2c"
804+
integrity sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==
805+
801806
"@types/react@^19.2.14":
802807
version "19.2.14"
803808
resolved "https://registry.yarnpkg.com/@types/react/-/react-19.2.14.tgz#39604929b5e3957e3a6fa0001dafb17c7af70bad"

0 commit comments

Comments
 (0)