Skip to content

BigInt support #11

Description

@smikitky

Steps

  • Allow raw bigint values as input (new MultiRange([[555n, 999n]]))
  • Add an option to parse strings as bigint
    new MultiRange('999999999999999999', { bigInt: true });
    // Should throw RangeError without bigInt option
  • Update type definitions after TypeScript officially supports BigInt

We will not do automatic type conversions to/from plain numbers. You should use use either number or bigint exclusively within a single instance of MultiRange.

Activity

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions