From 2e3bfeaf20b7c9af2774c5b776ebf8acdc3a453b Mon Sep 17 00:00:00 2001 From: Arttu Liimola Date: Tue, 12 Jun 2018 06:44:35 +0300 Subject: [PATCH] [@types/mathjs] Add Fraction as parameter type for number() method. --- types/mathjs/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mathjs/index.d.ts b/types/mathjs/index.d.ts index cdecc3e1b4..92015f72ff 100644 --- a/types/mathjs/index.d.ts +++ b/types/mathjs/index.d.ts @@ -543,7 +543,7 @@ declare namespace math { // tslint:disable-line strict-export-declare-modifiers /** * Create a number or convert a string, boolean, or unit to a number. When value is a matrix, all elements will be converted to number. */ - number(value?: string|number|boolean|MathArray|Matrix|Unit|BigNumber): number|MathArray|Matrix; + number(value?: string|number|boolean|MathArray|Matrix|Unit|BigNumber|Fraction): number|MathArray|Matrix; number(unit: Unit, valuelessUnit: Unit|string): number|MathArray|Matrix; /**