From 6ae43f39667a6d791bfb9087fcd067eaadb8a277 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Mon, 10 Nov 2014 22:59:11 -0800 Subject: [PATCH] Fix paramters for Math.hypot function --- src/lib/es6.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/es6.d.ts b/src/lib/es6.d.ts index fc520b68be4..7edbc15e48c 100644 --- a/src/lib/es6.d.ts +++ b/src/lib/es6.d.ts @@ -450,8 +450,14 @@ interface Math { /** * Returns the square root of the sum of squares of its arguments. + * @param values Values to compute the square root for. + * If no arguments are passed, the result is +0. + * If there is only one argument, the result is the absolute value. + * If any argument is +Infinity or -Infinity, the result is +Infinity. + * If any argument is NaN, the result is NaN. + * If all arguments are either +0 or −0, the result is +0. */ - hypot(value1: number, value2: number, ...values: number[] ): number; + hypot(...values: number[] ): number; /** * Returns the integral part of the a numeric expression, x, removing any fractional digits.