Closed lukaw3d closed 1 year ago
BigNumber.config().DECIMAL_PLACES throws Expected 1 arguments, but got 0. in typescript
BigNumber.config().DECIMAL_PLACES
Expected 1 arguments, but got 0.
https://github.com/MikeMcl/bignumber.js/blob/d87c6606f905668445b1f5782f94adf8c02c4618/bignumber.d.ts#L1650-L1652 https://github.com/MikeMcl/bignumber.js/blob/d87c6606f905668445b1f5782f94adf8c02c4618/bignumber.d.ts#L1827-L1829
Should be
static config(object: BigNumber.Config): BigNumber.Config; static config(): BigNumber.Config; static set(object: BigNumber.Config): BigNumber.Config; static set(): BigNumber.Config;
Yes, the argument should be optional.
static config(object?: BigNumber.Config): BigNumber.Config;
Thanks for the feedback.
BigNumber.config().DECIMAL_PLACES
throwsExpected 1 arguments, but got 0.
in typescripthttps://github.com/MikeMcl/bignumber.js/blob/d87c6606f905668445b1f5782f94adf8c02c4618/bignumber.d.ts#L1650-L1652 https://github.com/MikeMcl/bignumber.js/blob/d87c6606f905668445b1f5782f94adf8c02c4618/bignumber.d.ts#L1827-L1829
Should be