From a294180ad41be5c4b7c0fccac53428c583669b54 Mon Sep 17 00:00:00 2001 From: Jeremy Nguyen Date: Sat, 29 Aug 2026 19:10:38 -0700 Subject: [PATCH] Update toFraction return type to tuple --- decimal.d.ts | 2 +- decimal.global.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/decimal.d.ts b/decimal.d.ts index 526a896..3bd3e4e 100644 --- a/decimal.d.ts +++ b/decimal.d.ts @@ -196,7 +196,7 @@ export declare class Decimal { toFixed(decimalPlaces?: number): string; toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string; - toFraction(max_denominator?: Decimal.Value): Decimal[]; + toFraction(max_denominator?: Decimal.Value): [numerator: Decimal, denominator: Decimal]; toHexadecimal(significantDigits?: number): string; toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string; diff --git a/decimal.global.d.ts b/decimal.global.d.ts index a3162a3..eff3baa 100644 --- a/decimal.global.d.ts +++ b/decimal.global.d.ts @@ -217,7 +217,7 @@ export declare class Decimal { toFixed(decimalPlaces?: number): string; toFixed(decimalPlaces: number, rounding: DecimalRounding): string; - toFraction(max_denominator?: DecimalValue): Decimal[]; + toFraction(max_denominator?: DecimalValue): [numerator: Decimal, denominator: Decimal]; toHexadecimal(significantDigits?: number): string; toHexadecimal(significantDigits: number, rounding: DecimalRounding): string;