Skip to content

Commit

Permalink
fix(types): fix types when using package
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Oct 14, 2022
1 parent c8c8f98 commit 0dfec56
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
},
"homepage": "https://github.com/Rubilmax/ethers-maths#readme",
"dependencies": {
"@ethersproject/bignumber": "^5.7.0",
"@ethersproject/units": "^5.7.0"
"@ethersproject/bignumber": "^5.0.0",
"@ethersproject/units": "^5.0.0"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^3.3.0",
Expand All @@ -64,7 +64,10 @@
"ts-jest": "^27.0.5",
"typescript": "^4.7.4"
},
"peerDependencies": {},
"peerDependencies": {
"@ethersproject/bignumber": "^5.0.0",
"@ethersproject/units": "^5.0.0"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const HALF_WAD_PERCENT_RATIO = WAD_PERCENT_RATIO.div(2);
const RAY_PERCENT_RATIO = RAY.div(PERCENT);
const HALF_RAY_PERCENT_RATIO = RAY_PERCENT_RATIO.div(2);

declare module "@ethersproject/bignumber" {
declare module "@ethersproject/bignumber/lib/bignumber" {
interface BigNumber {
min: (other: BigNumberish) => BigNumber;
max: (other: BigNumberish) => BigNumber;
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
minimatch "^3.1.2"
strip-json-comments "^3.1.1"

"@ethersproject/bignumber@^5.7.0":
"@ethersproject/bignumber@^5.0.0", "@ethersproject/bignumber@^5.7.0":
version "5.7.0"
resolved "https://registry.yarnpkg.com/@ethersproject/bignumber/-/bignumber-5.7.0.tgz#e2f03837f268ba655ffba03a57853e18a18dc9c2"
integrity sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw==
Expand Down Expand Up @@ -449,7 +449,7 @@
resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.7.0.tgz#6ce9ae168e74fecf287be17062b590852c311892"
integrity sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig==

"@ethersproject/units@^5.7.0":
"@ethersproject/units@^5.0.0":
version "5.7.0"
resolved "https://registry.yarnpkg.com/@ethersproject/units/-/units-5.7.0.tgz#637b563d7e14f42deeee39245275d477aae1d8b1"
integrity sha512-pD3xLMy3SJu9kG5xDGI7+xhTEmGXlEqXU4OfNapmfnxLVY4EMSSRp7j1k7eezutBPH7RBN/7QPnwR7hzNlEFeg==
Expand Down

0 comments on commit 0dfec56

Please sign in to comment.