Skip to content

Commit 4210f46

Browse files
authored
chore: Upgrade and consolidate @types/react (#22710)
We used to only inherit it transitively via @types/prop-types, but a lot of typings actually need it. This will helps us pull the latest @type/reach__router package, which (only implicitly, unfortuately) depends on more recent react types than the ones we have. For example, helps in #22563.
1 parent 805b745 commit 4210f46

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@types/lodash": "^4.14.149",
1919
"@types/node": "^12.12.30",
2020
"@types/node-fetch": "^2.5.5",
21+
"@types/react": "^16.9.31",
2122
"@types/stack-trace": "^0.0.29",
2223
"@types/webpack": "^4.41.7",
2324
"@typescript-eslint/eslint-plugin": "^2.24.0",

yarn.lock

+13-8
Original file line numberDiff line numberDiff line change
@@ -4052,10 +4052,9 @@
40524052
integrity sha512-Oh7wnvVUCtVIWnCHQWe9qDZKn0fGyk5AMq99jXml0x39K59P+z9qe31CNRtop9TceCpS7NmoK+J9eGeCnyFgnw==
40534053

40544054
"@types/prop-types@*":
4055-
version "15.5.5"
4056-
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.5.5.tgz#17038dd322c2325f5da650a94d5f9974943625e3"
4057-
dependencies:
4058-
"@types/react" "*"
4055+
version "15.7.3"
4056+
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7"
4057+
integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==
40594058

40604059
"@types/q@^1.5.1":
40614060
version "1.5.2"
@@ -4081,9 +4080,10 @@
40814080
dependencies:
40824081
"@types/react" "*"
40834082

4084-
"@types/react@*":
4085-
version "16.8.8"
4086-
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.8.8.tgz#4b60a469fd2469f7aa6eaa0f8cfbc51f6d76e662"
4083+
"@types/react@*", "@types/react@^16.9.31":
4084+
version "16.9.31"
4085+
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.31.tgz#6a543529766c8934ec8a89667376c2e73e9e2636"
4086+
integrity sha512-NpYJpNMWScFXtx3A2BJMeew2G3+9SEslVWMdxNJ6DLvxIuxWjY1bizK9q5Y1ujhln31vtjmhjOAYDr9Xx3k9FQ==
40874087
dependencies:
40884088
"@types/prop-types" "*"
40894089
csstype "^2.2.0"
@@ -8056,7 +8056,12 @@ cssstyle@^2.2.0:
80568056
dependencies:
80578057
cssom "~0.3.6"
80588058

8059-
csstype@^2.2.0, csstype@^2.5.7:
8059+
csstype@^2.2.0:
8060+
version "2.6.10"
8061+
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.10.tgz#e63af50e66d7c266edb6b32909cfd0aabe03928b"
8062+
integrity sha512-D34BqZU4cIlMCY93rZHbrq9pjTAQJ3U8S8rfBqjwHxkGPThWFjzZDQpgMJY0QViLxth6ZKYiwFBo14RdN44U/w==
8063+
8064+
csstype@^2.5.7:
80608065
version "2.6.5"
80618066
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.5.tgz#1cd1dff742ebf4d7c991470ae71e12bb6751e034"
80628067
integrity sha512-JsTaiksRsel5n7XwqPAfB0l3TFKdpjW/kgAELf9vrb5adGA7UCPLajKK5s3nFrcFm3Rkyp/Qkgl73ENc1UY3cA==

0 commit comments

Comments
 (0)