Skip to content

Commit

Permalink
Merge pull request #24436 from MicahZoltu/patch-1
Browse files Browse the repository at this point in the history
Fixes Number.is* signatures to accept any input.
  • Loading branch information
mhegazy committed May 30, 2018
2 parents c47df3a + a846e7f commit 593b048
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/lib.es2015.core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,29 +222,29 @@ interface NumberConstructor {
* Returns true if passed value is finite.
* Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
* number. Only finite values of the type number, result in true.
* @param number A numeric value.
* @param value The value you want to test.
*/
isFinite(number: number): boolean;
isFinite(value: any): boolean;

/**
* Returns true if the value passed is an integer, false otherwise.
* @param number A numeric value.
* @param value The value you want to test.
*/
isInteger(number: number): boolean;
isInteger(value: any): boolean;

/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
* number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
* to a number. Only values of the type number, that are also NaN, result in true.
* @param number A numeric value.
* @param value The value you want to test.
*/
isNaN(number: number): boolean;
isNaN(number: any): boolean;

/**
* Returns true if the value passed is a safe integer.
* @param number A numeric value.
* @param value The value you want to test
*/
isSafeInteger(number: number): boolean;
isSafeInteger(value: any): boolean;

/**
* The value of the largest integer n such that n and n + 1 are both exactly representable as
Expand Down

0 comments on commit 593b048

Please sign in to comment.