From eeec000076c63db51a01515f7dea4a737bcf7bd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abel=20Fern=C3=A1ndez?= Date: Tue, 15 Sep 2020 10:08:00 +0200 Subject: [PATCH] Add Decimal.minus() to declaration file --- packages/math/types/decimal.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/math/types/decimal.d.ts b/packages/math/types/decimal.d.ts index 0642fa07..123da718 100644 --- a/packages/math/types/decimal.d.ts +++ b/packages/math/types/decimal.d.ts @@ -24,6 +24,13 @@ export declare class Decimal { * Both values need to have the same fractional digits. */ plus(b: Decimal): Decimal; + /** + * a.minus(b) returns a-b. + * + * Both values need to have the same fractional digits. + * The resulting difference needs to be non-negative. + */ + minus(b: Decimal): Decimal; equals(b: Decimal): boolean; isLessThan(b: Decimal): boolean; isLessThanOrEqual(b: Decimal): boolean;