1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2025-06-06 09:24:21 +00:00

#216 TypeScript: instantiation without new keyword

This commit is contained in:
Michael Mclaughlin 2025-01-23 17:04:35 +00:00
parent 6df248f559
commit b95c6eb3c7
2 changed files with 4 additions and 0 deletions

2
decimal.d.ts vendored
View File

@ -297,3 +297,5 @@ export declare class Decimal {
static readonly ROUND_HALF_FLOOR: 8; static readonly ROUND_HALF_FLOOR: 8;
static readonly EUCLID: 9; static readonly EUCLID: 9;
} }
export declare function Decimal(n: Decimal.Value): Decimal;

2
decimal.global.d.ts vendored
View File

@ -318,3 +318,5 @@ export declare class Decimal {
static readonly ROUND_HALF_FLOOR: 8; static readonly ROUND_HALF_FLOOR: 8;
static readonly EUCLID: 9; static readonly EUCLID: 9;
} }
export declare function Decimal(n: Decimal.Value): Decimal;