From bbd338282523ada426469735e890a04cef906d0c Mon Sep 17 00:00:00 2001 From: "DESKTOP-1F3J099\\Brad" Date: Sun, 10 Jun 2018 18:19:21 -0400 Subject: [PATCH] Update rationalize definition --- types/mathjs/index.d.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/types/mathjs/index.d.ts b/types/mathjs/index.d.ts index 28bc0cc65a..fd9c92b686 100644 --- a/types/mathjs/index.d.ts +++ b/types/mathjs/index.d.ts @@ -435,11 +435,8 @@ declare namespace math { * expression node (default) * @returns The rational polynomial of expr */ - rationalize( - expr: MathNode | string, - optional: object | boolean, - detailed: boolean - ): object | MathNode; + rationalize(expr: MathNode | string, optional?: object | boolean, detailed?: true): { expression: MathNode | string, variables: string[], coefficients: MathType[] }; + rationalize(expr: MathNode | string, optional?: object | boolean, detailed?: false): MathNode; /** * Simplify an expression tree.