Skip to content

.toFraction() has the wrong TS return type #404

@dlq84

Description

@dlq84

Hello, I just updated to the latest BigNumber.js (10.0.2).

Now the return type of .toFraction() is BigNumber | [BigNumber, BigNumber], while it used to be [BigNumber, BigNumber]. Was this deliberate? It doesn't seem like it was since the documentation (https://mikemcl.github.io/bignumber.js/#toFr) says it should be an array of two BigNumbers.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions