-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
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.
- TC39 BigInt proposal (now stage 3): https://github.com/tc39/proposal-bigint
- TypeScript issue: Support for TC39 "BigInt: Arbitrary precision integers in JavaScript" proposal microsoft/TypeScript#15096