Skip to content

Commit 26bd050

Browse files
Update React and React DOM type definitions to specific versions
Co-authored-by: rahul.chhabria <[email protected]>
1 parent 22cbdab commit 26bd050

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@
130130
"@types/d3-axis": "^3.0.6",
131131
"@types/dompurify": "3.0.5",
132132
"@types/node": "^24.0.13",
133-
"@types/react": "^19.1.8",
134-
"@types/react-dom": "^19.1.6",
133+
"@types/react": "18.3.12",
134+
"@types/react-dom": "18.3.1",
135135
"@types/ws": "^8.5.10",
136136
"autoprefixer": "^10.4.17",
137137
"concurrently": "^9.1.0",

src/@types/acorn.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Stub type declarations for the `acorn` parser when its own types are not available.
2+
// We only export `any` values to satisfy TypeScript without enforcing acorn's API surface.
3+
4+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
5+
declare module 'acorn' {
6+
const acorn: any;
7+
export = acorn;
8+
}

yarn.lock

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4803,38 +4803,33 @@
48034803
resolved "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.13.tgz"
48044804
integrity sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==
48054805

4806+
4807+
version "18.3.1"
4808+
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.3.1.tgz#1e4654c08a9cdcfb6594c780ac59b55aad42fe07"
4809+
integrity sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==
4810+
dependencies:
4811+
"@types/react" "*"
4812+
48064813
"@types/react-dom@>=16":
48074814
version "19.0.3"
48084815
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-19.0.3.tgz#0804dfd279a165d5a0ad8b53a5b9e65f338050a4"
48094816
integrity sha512-0Knk+HJiMP/qOZgMyNFamlIjw9OFCsyC2ZbigmEEyXXixgre6IQpm/4V+r3qH4GC1JPvRJKInw+on2rV6YZLeA==
48104817

4811-
"@types/react-dom@^19.1.6":
4812-
version "19.1.6"
4813-
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-19.1.6.tgz#4af629da0e9f9c0f506fc4d1caa610399c595d64"
4814-
integrity sha512-4hOiT/dwO8Ko0gV1m/TJZYk3y0KBnY9vzDh7W+DH17b2HFSOGgdj33dhihPeuy3l0q23+4e+hoXHV6hCC4dCXw==
4815-
48164818
"@types/react-transition-group@^4.4.0":
48174819
version "4.4.11"
48184820
resolved "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.11.tgz"
48194821
integrity sha512-RM05tAniPZ5DZPzzNFP+DmrcOdD0efDUxMy3145oljWSl3x9ZV5vhme98gTxFrj2lhXvmGNnUiuDyJgY9IKkNA==
48204822
dependencies:
48214823
"@types/react" "*"
48224824

4823-
"@types/react@*", "@types/react@>=16":
4825+
"@types/react@*", "@types/react@18.3.12", "@types/react@>=16":
48244826
version "18.3.12"
48254827
resolved "https://registry.npmjs.org/@types/react/-/react-18.3.12.tgz"
48264828
integrity sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==
48274829
dependencies:
48284830
"@types/prop-types" "*"
48294831
csstype "^3.0.2"
48304832

4831-
"@types/react@^19.1.8":
4832-
version "19.1.8"
4833-
resolved "https://registry.yarnpkg.com/@types/react/-/react-19.1.8.tgz#ff8395f2afb764597265ced15f8dddb0720ae1c3"
4834-
integrity sha512-AwAfQ2Wa5bCx9WP8nZL2uMZWod7J7/JSplxbTmBQ5ms6QpqNYm672H0Vu9ZVKVngQ+ii4R/byguVEUZQyeg44g==
4835-
dependencies:
4836-
csstype "^3.0.2"
4837-
48384833
"@types/request@^2.48.8":
48394834
version "2.48.12"
48404835
resolved "https://registry.npmjs.org/@types/request/-/request-2.48.12.tgz"

0 commit comments

Comments
 (0)