Skip to content

BigInt support #11

@smikitky

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions