mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Merge pull request #24436 from MicahZoltu/patch-1
Fixes Number.is* signatures to accept any input.
This commit is contained in:
commit
593b048c0e
16
lib/lib.es2015.core.d.ts
vendored
16
lib/lib.es2015.core.d.ts
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user