Skip to content

Commit c982c34

Browse files
committed
fix typescript compliation broken because of duplicate react definitions
1 parent c42d2d3 commit c982c34

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-bottom-scroll-listener",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "A simple React component that lets you listen for when you have scrolled to the bottom.",
55
"repository": "https://github.com/karl-run/react-bottom-scroll-listener",
66
"keywords": [
@@ -75,5 +75,8 @@
7575
"rollup-plugin-typescript2": "^0.21.1",
7676
"rollup-plugin-url": "^2.2.1",
7777
"typescript": "^3.5.1"
78+
},
79+
"resolutions": {
80+
"@types/react": "^16.8.19"
7881
}
7982
}

yarn.lock

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,7 @@
267267
dependencies:
268268
"@types/react" "*"
269269

270-
"@types/react@*":
271-
version "16.8.7"
272-
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.8.7.tgz#7b1c0223dd5494f9b4501ad2a69aa6acb350a29b"
273-
integrity sha512-0xbkIyrDNKUn4IJVf8JaCn+ucao/cq6ZB8O6kSzhrJub1cVSqgTArtG0qCfdERWKMEIvUbrwLXeQMqWEsyr9dA==
274-
dependencies:
275-
"@types/prop-types" "*"
276-
csstype "^2.2.0"
277-
278-
"@types/react@^16.8.19":
270+
"@types/react@*", "@types/react@^16.8.19":
279271
version "16.8.19"
280272
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.8.19.tgz#629154ef05e2e1985cdde94477deefd823ad9be3"
281273
integrity sha512-QzEzjrd1zFzY9cDlbIiFvdr+YUmefuuRYrPxmkwG0UQv5XF35gFIi7a95m1bNVcFU0VimxSZ5QVGSiBmlggQXQ==

0 commit comments

Comments
 (0)