Skip to content

Commit b95c6eb

Browse files
committed
#216 TypeScript: instantiation without new keyword
1 parent 6df248f commit b95c6eb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

decimal.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,3 +297,5 @@ export declare class Decimal {
297297
static readonly ROUND_HALF_FLOOR: 8;
298298
static readonly EUCLID: 9;
299299
}
300+
301+
export declare function Decimal(n: Decimal.Value): Decimal;

decimal.global.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,3 +318,5 @@ export declare class Decimal {
318318
static readonly ROUND_HALF_FLOOR: 8;
319319
static readonly EUCLID: 9;
320320
}
321+
322+
export declare function Decimal(n: Decimal.Value): Decimal;

0 commit comments

Comments
 (0)