From e71b8fb1a04d93d9401ae6be61b34f1123b8e117 Mon Sep 17 00:00:00 2001 From: Hudsxn Date: Mon, 29 Jan 2024 05:36:46 +0000 Subject: [PATCH 1/2] Addressed silentmissile's comment in https://github.com/josdejong/mathjs/issues/3125 --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 28036ff778..87a60975e8 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1200,7 +1200,7 @@ export interface MathJsInstance extends MathJsFactory { * whole matrix. * @returns Returns the hypothenuse of the input values. */ - hypot(...args: T[]): T + hypot(...args: T[]): T /** * Calculate the least common multiple for two or more values or arrays. From 16cb78d1aad905c344c46173cc20f68745abb133 Mon Sep 17 00:00:00 2001 From: Hudsxn Date: Wed, 31 Jan 2024 11:29:00 +0000 Subject: [PATCH 2/2] Added method overload to index.d.ts, have to revert commit due to changes to package-lock.json with using npm install to run the unit tests & lint tests --- types/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/index.d.ts b/types/index.d.ts index 87a60975e8..048e4d2ab4 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1201,6 +1201,7 @@ export interface MathJsInstance extends MathJsFactory { * @returns Returns the hypothenuse of the input values. */ hypot(...args: T[]): T + hypot(args: T[]): T /** * Calculate the least common multiple for two or more values or arrays.