mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 10:35:11 +00:00
build(deps): bump @types/react from 18.2.21 to 18.2.37 (#2087)
* build(deps): bump @types/react from 18.2.21 to 18.2.37 Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.2.21 to 18.2.37. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * yarn: update react-splitter-layout * fix type errors for react-splitter-layout Upgrading to `@types/react` > 18.2.21 causes the following errors: ``` src/app/App.tsx:202:22 - error TS2786: 'SplitterLayout' cannot be used as a JSX component. Its instance type 'SplitterLayout' is not a valid JSX element. The types returned by 'render()' are incompatible between these types. Type 'import("/home/david/work/pybricks/pybricks-code/node_modules/@types/react-dom/node_modules/@types/react/ts5.0/index").ReactNode' is not assignable to type 'React.ReactNode'. Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type 'ReactNode'. Property 'children' is missing in type 'ReactElement<any, string | JSXElementConstructor<any>>' but required in type 'ReactPortal'. 202 <SplitterLayout ~~~~~~~~~~~~~~ node_modules/@types/react/ts5.0/index.d.ts:175:9 175 children: ReactNode; ~~~~~~~~ 'children' is declared here. src/app/App.tsx:212:26 - error TS2786: 'SplitterLayout' cannot be used as a JSX component. Its instance type 'SplitterLayout' is not a valid JSX element. 212 <SplitterLayout ~~~~~~~~~~~~~~ Found 2 errors in the same file, starting at: src/app/App.tsx:202 ``` https://arethetypeswrong.github.io/?p=react-splitter-layout%404.0.0 provided the hint that we need `export =` instead of `export default`. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Lechner <david@pybricks.com>
This commit is contained in:
co-authored by
David Lechner
parent
a64b43091c
commit
de86d78c03
+2
-2
@@ -28,9 +28,9 @@
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/jest": "^29.5.5",
|
||||
"@types/node": "^18.17.17",
|
||||
"@types/react": "^18.2.21",
|
||||
"@types/react": "^18.2.37",
|
||||
"@types/react-dom": "^18.2.7",
|
||||
"@types/react-splitter-layout": "^3.0.2",
|
||||
"@types/react-splitter-layout": "^3.0.5",
|
||||
"@types/react-transition-group": "^4.4.7",
|
||||
"@types/redux-logger": "^3.0.10",
|
||||
"@types/semver": "^7.5.3",
|
||||
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// Copyright (c) 2023 The Pybricks Authors
|
||||
|
||||
declare module 'react-splitter-layout' {
|
||||
export = class SplitterLayout extends React.PureComponent<SplitterLayoutProps> {};
|
||||
}
|
||||
@@ -2659,9 +2659,9 @@ __metadata:
|
||||
"@types/file-saver": ^2.0.5
|
||||
"@types/jest": ^29.5.5
|
||||
"@types/node": ^18.17.17
|
||||
"@types/react": ^18.2.21
|
||||
"@types/react": ^18.2.37
|
||||
"@types/react-dom": ^18.2.7
|
||||
"@types/react-splitter-layout": ^3.0.2
|
||||
"@types/react-splitter-layout": ^3.0.5
|
||||
"@types/react-transition-group": ^4.4.7
|
||||
"@types/redux-logger": ^3.0.10
|
||||
"@types/semver": ^7.5.3
|
||||
@@ -4973,12 +4973,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/react-splitter-layout@npm:^3.0.2":
|
||||
version: 3.0.2
|
||||
resolution: "@types/react-splitter-layout@npm:3.0.2"
|
||||
"@types/react-splitter-layout@npm:^3.0.5":
|
||||
version: 3.0.5
|
||||
resolution: "@types/react-splitter-layout@npm:3.0.5"
|
||||
dependencies:
|
||||
"@types/react": "*"
|
||||
checksum: 7fa9c0840f848c12678d79c0966d6dd20a89c04509b4b0daf8e366668524d3c629ee259e5c15669d061b786569d85246081d0ee7bf83242e2667c1a3ecbcbd1e
|
||||
checksum: 9c8e9cc7ac568a3f5c7a1237725ce084d4c0747f91f7da359b9d5bf2439b33c99f3b90223443854d9602af84a1fad1ffe159ac0a2b77d4a42588e17044c136ec
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -4991,7 +4991,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/react@npm:*, @types/react@npm:^18.2.21":
|
||||
"@types/react@npm:*":
|
||||
version: 18.2.21
|
||||
resolution: "@types/react@npm:18.2.21"
|
||||
dependencies:
|
||||
@@ -5002,6 +5002,17 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/react@npm:^18.2.37":
|
||||
version: 18.2.37
|
||||
resolution: "@types/react@npm:18.2.37"
|
||||
dependencies:
|
||||
"@types/prop-types": "*"
|
||||
"@types/scheduler": "*"
|
||||
csstype: ^3.0.2
|
||||
checksum: 2d2599f1a09e4f678509161fea8baeaf76d21deee460f4f3ccc1ca431ebe85f896d7d0b906127de17e97ed57240cec61955eb97d0b5d9cbf4e97fd6620b1acdb
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/redux-logger@npm:^3.0.10":
|
||||
version: 3.0.10
|
||||
resolution: "@types/redux-logger@npm:3.0.10"
|
||||
|
||||
Reference in New Issue
Block a user