1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2024-10-27 20:34:12 +00:00

Correct typings: toFraction returns Decimal[]

This commit is contained in:
Michael Mclaughlin 2017-12-09 11:51:25 +00:00
parent 1cbf5ffb44
commit 17a358f2f4

2
decimal.d.ts vendored
View File

@ -232,7 +232,7 @@ export declare class Decimal {
// Requires `toFormat`.
toFormat?(decimalPlaces: number, rounding: DecimalRounding): string;
toFraction(max_denominator?: DecimalValue): string[];
toFraction(max_denominator?: DecimalValue): Decimal[];
toHexadecimal(significantDigits?: number): Decimal
toHexadecimal(significantDigits: number, rounding: DecimalRounding): Decimal