Skip to content

Provide a Version Only Exporting Format Helpers #1

@0xcaff

Description

@0xcaff

Importing and mutating decimal.js seems like it could cause conflicts with other modules. It seems like this is necessary for some reason according to this comment, but why is unclear to me.

// In order to appropriately represent the Format class, it needs to be placed on Decimal as a 'static' member:

Could we instead have a version of this library which does no automatic patching but instead exports the Decimal.Format object?

Happy to make a PR once we've decided! Thanks so much for making this library!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions