Skip to content

Commit

Permalink
Force a single resolution of react types
Browse files Browse the repository at this point in the history
Multiple type versions lead to type errors like this one
software-mansion/react-native-svg#1741
  • Loading branch information
lindboe committed Feb 15, 2024
1 parent 03a7d1f commit e4d503a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
"gitlog": "^4.0.4",
"typescript": "~5.2.2"
},
"resolutions": {
"@types/react": "^18.2.55"
},
"browserslist": {
"production": [
">0.5%",
Expand Down
11 changes: 1 addition & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2696,16 +2696,7 @@
"@types/history" "^4.7.11"
"@types/react" "*"

"@types/react@*":
version "18.0.17"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.17.tgz#4583d9c322d67efe4b39a935d223edcc7050ccf4"
integrity sha512-38ETy4tL+rn4uQQi7mB81G7V1g0u2ryquNmsVIOKUAEIDK+3CUjZ6rSRpdvS99dNBnkLFL83qfmtLacGOTIhwQ==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
csstype "^3.0.2"

"@types/react@^18.2.55":
"@types/react@*", "@types/react@^18.2.55":
version "18.2.55"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.55.tgz#38141821b7084404b5013742bc4ae08e44da7a67"
integrity sha512-Y2Tz5P4yz23brwm2d7jNon39qoAtMMmalOQv6+fEFt1mT+FcM3D841wDpoUvFXhaYenuROCy3FZYqdTjM7qVyA==
Expand Down

0 comments on commit e4d503a

Please sign in to comment.