Browse Source

add react-dom types so that Portal is correctly recognised

LB Johnston 2 years ago
parent
commit
d9350bc91b
2 changed files with 20 additions and 0 deletions
  1. 19 0
      package-lock.json
  2. 1 0
      package.json

+ 19 - 0
package-lock.json

@@ -38,6 +38,7 @@
         "@types/draft-js": "^0.10.45",
         "@types/jest": "^26.0.24",
         "@types/react": "^16.14.21",
+        "@types/react-dom": "^16.0",
         "@types/react-redux": "^7.1.20",
         "@typescript-eslint/eslint-plugin": "^5.8.0",
         "@typescript-eslint/parser": "^5.8.0",
@@ -13364,6 +13365,15 @@
         "csstype": "^3.0.2"
       }
     },
+    "node_modules/@types/react-dom": {
+      "version": "16.9.16",
+      "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-16.9.16.tgz",
+      "integrity": "sha512-Oqc0RY4fggGA3ltEgyPLc3IV9T73IGoWjkONbsyJ3ZBn+UPPCYpU2ec0i3cEbJuEdZtkqcCF2l1zf2pBdgUGSg==",
+      "dev": true,
+      "dependencies": {
+        "@types/react": "^16"
+      }
+    },
     "node_modules/@types/react-redux": {
       "version": "7.1.22",
       "license": "MIT",
@@ -40711,6 +40721,15 @@
         }
       }
     },
+    "@types/react-dom": {
+      "version": "16.9.16",
+      "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-16.9.16.tgz",
+      "integrity": "sha512-Oqc0RY4fggGA3ltEgyPLc3IV9T73IGoWjkONbsyJ3ZBn+UPPCYpU2ec0i3cEbJuEdZtkqcCF2l1zf2pBdgUGSg==",
+      "dev": true,
+      "requires": {
+        "@types/react": "^16"
+      }
+    },
     "@types/react-redux": {
       "version": "7.1.22",
       "requires": {

+ 1 - 0
package.json

@@ -60,6 +60,7 @@
     "@types/draft-js": "^0.10.45",
     "@types/jest": "^26.0.24",
     "@types/react": "^16.14.21",
+    "@types/react-dom": "^16.0",
     "@types/react-redux": "^7.1.20",
     "@typescript-eslint/eslint-plugin": "^5.8.0",
     "@typescript-eslint/parser": "^5.8.0",