diff --git a/.depcheckrc.yml b/.depcheckrc.yml index 36e2bc04bb1b..00959f049235 100644 --- a/.depcheckrc.yml +++ b/.depcheckrc.yml @@ -9,6 +9,8 @@ ignores: - 'babel-plugin-inline-import' # This is used on the patch for TokenRatesController of Assets controllers, for we to be able to use the last version of it - cockatiel + # Force intended major version of @types/bn.js used by TypeScript + - '@types/bn.js' # Note: Everything below this line should be removed after investigation # TODO: Investigate each dependency to see whether it's used diff --git a/package.json b/package.json index 629bdc1fea90..161ff5b41ea6 100644 --- a/package.json +++ b/package.json @@ -392,6 +392,7 @@ "@testing-library/react": "14.0.0", "@testing-library/react-hooks": "^8.0.1", "@testing-library/react-native": "12.1.2", + "@types/bn.js": "^4.11.6", "@types/crypto-js": "^4.1.1", "@types/enzyme": "^3.10.12", "@types/eth-url-parser": "^1.0.0", diff --git a/yarn.lock b/yarn.lock index 192fdfce8033..fe27bb5bc89b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9435,7 +9435,7 @@ dependencies: "@types/node" "*" -"@types/bn.js@^4.11.3": +"@types/bn.js@^4.11.3", "@types/bn.js@^4.11.6": version "4.11.6" resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-4.11.6.tgz#c306c70d9358aaea33cd4eda092a742b9505967c" integrity sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==