mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2025-06-06 09:24:21 +00:00
Add BigInt support to TypeScript definitions
This commit is contained in:
parent
928b4cf0ee
commit
01e78ca9c4
@ -5,6 +5,7 @@ An arbitrary-precision Decimal type for JavaScript.
|
|||||||
[](https://www.npmjs.com/package/decimal.js)
|
[](https://www.npmjs.com/package/decimal.js)
|
||||||
[](https://www.npmjs.com/package/decimal.js)
|
[](https://www.npmjs.com/package/decimal.js)
|
||||||
[](https://cdnjs.com/libraries/decimal.js)
|
[](https://cdnjs.com/libraries/decimal.js)
|
||||||
|
[](https://www.jsdelivr.com/package/npm/decimal.js)
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
2
decimal.d.ts
vendored
2
decimal.d.ts
vendored
@ -36,7 +36,7 @@ export namespace Decimal {
|
|||||||
export type Instance = Decimal;
|
export type Instance = Decimal;
|
||||||
export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
||||||
export type Modulo = Rounding | 9;
|
export type Modulo = Rounding | 9;
|
||||||
export type Value = string | number | Decimal;
|
export type Value = string | number | bigint | Decimal;
|
||||||
|
|
||||||
// http://mikemcl.github.io/decimal.js/#constructor-properties
|
// http://mikemcl.github.io/decimal.js/#constructor-properties
|
||||||
export interface Config {
|
export interface Config {
|
||||||
|
2
decimal.global.d.ts
vendored
2
decimal.global.d.ts
vendored
@ -56,7 +56,7 @@ declare global {
|
|||||||
|
|
||||||
type DecimalInstance = Decimal;
|
type DecimalInstance = Decimal;
|
||||||
type DecimalConstructor = typeof Decimal;
|
type DecimalConstructor = typeof Decimal;
|
||||||
type DecimalValue = string | number | Decimal;
|
type DecimalValue = string | number | bigint |Decimal;
|
||||||
type DecimalRounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
type DecimalRounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
||||||
type DecimalModulo = DecimalRounding | 9;
|
type DecimalModulo = DecimalRounding | 9;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user