Skip to content

Breaking change in 9.2.0 - typescript declaration not exporting BigNumber class, only as default export #382

Description

@MarkChrisLevy

The 9.2.0 release introduced a change in type declarations - each build type has its own type declaration file. Along with this change, the exported class BigNumber is now only exported as the default export, so the previously working import import {BigNumber} from "bignumber.js" throws an invalid import error.

a543ab5#diff-1d25ae035c462374681fd5be19f53003d9713742bfc7c233cce10a2ee6ec2ea0R326

If that was on purpose it should be released under major version release, as this is a breaking change.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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