Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Number.is* signatures to accept any input. #24436

Merged
merged 1 commit into from
May 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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