From b95c6eb3c72a77c14207b37426294c353be8774b Mon Sep 17 00:00:00 2001 From: Michael Mclaughlin Date: Thu, 23 Jan 2025 17:04:35 +0000 Subject: [PATCH] #216 TypeScript: instantiation without new keyword --- decimal.d.ts | 2 ++ decimal.global.d.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/decimal.d.ts b/decimal.d.ts index 0fbc7b2..338dc56 100644 --- a/decimal.d.ts +++ b/decimal.d.ts @@ -297,3 +297,5 @@ export declare class Decimal { static readonly ROUND_HALF_FLOOR: 8; static readonly EUCLID: 9; } + +export declare function Decimal(n: Decimal.Value): Decimal; diff --git a/decimal.global.d.ts b/decimal.global.d.ts index 6b28256..ddc5109 100644 --- a/decimal.global.d.ts +++ b/decimal.global.d.ts @@ -318,3 +318,5 @@ export declare class Decimal { static readonly ROUND_HALF_FLOOR: 8; static readonly EUCLID: 9; } + +export declare function Decimal(n: Decimal.Value): Decimal;