Skip to content

Commit 31ebcc8

Browse files
authored
Merge pull request #198 from dmarkow/master
Use type predicate on isDecimal
2 parents 1bcf067 + a699f6b commit 31ebcc8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

decimal.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export declare class Decimal {
251251
static exp(n: Decimal.Value): Decimal;
252252
static floor(n: Decimal.Value): Decimal;
253253
static hypot(...n: Decimal.Value[]): Decimal;
254-
static isDecimal(object: any): boolean
254+
static isDecimal(object: any): object is Decimal;
255255
static ln(n: Decimal.Value): Decimal;
256256
static log(n: Decimal.Value, base?: Decimal.Value): Decimal;
257257
static log2(n: Decimal.Value): Decimal;

decimal.global.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export declare class Decimal {
272272
static exp(n: DecimalValue): Decimal;
273273
static floor(n: DecimalValue): Decimal;
274274
static hypot(...n: DecimalValue[]): Decimal;
275-
static isDecimal(object: any): boolean
275+
static isDecimal(object: any): object is Decimal;
276276
static ln(n: DecimalValue): Decimal;
277277
static log(n: DecimalValue, base?: DecimalValue): Decimal;
278278
static log2(n: DecimalValue): Decimal;

0 commit comments

Comments
 (0)