Skip to content

Commit 14e2116

Browse files
committed
fix(api): update for new react
1 parent ab434b8 commit 14e2116

4 files changed

Lines changed: 47 additions & 50 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
"@commitlint/cz-commitlint": "^17.0.0",
4646
"@semantic-release/changelog": "^6.0.1",
4747
"@semantic-release/git": "^10.0.1",
48-
"@types/react": "18.3.3",
49-
"@types/react-dom": "18.3.0",
50-
"@types/react-router": "5.1.18",
48+
"@types/react": "19.1.1",
49+
"@types/react-dom": "19.1.1",
50+
"@types/react-router": "5.1.20",
5151
"commitizen": "^4.2.4",
5252
"husky": "^8.0.1",
5353
"import-sort-style-module": "^6.0.0",

pnpm-lock.yaml

Lines changed: 41 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ComponentType, ReactNode } from 'react';
1+
import type { ComponentType, JSX, ReactNode } from 'react';
22
import { RouteProps } from 'react-router';
33

44
export type RoutePatch = (route: RouteProps) => RouteProps;

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"outDir": "dist",
44
"module": "ESNext",
55
"target": "ES2020",
6-
"jsx": "react",
7-
"jsxFactory": "window.SP_REACT.createElement",
6+
"jsx": "react-jsx",
87
"declaration": true,
98
"moduleResolution": "node",
109
"noUnusedLocals": true,
@@ -14,6 +13,7 @@
1413
"noImplicitThis": true,
1514
"noImplicitAny": true,
1615
"strict": true,
16+
"removeComments": true,
1717
"allowSyntheticDefaultImports": true
1818
},
1919
"include": ["src"],

0 commit comments

Comments
 (0)