Files
DefinitelyTyped/types/is-number/index.d.ts
Harry Shipton b166083928 [is-number] Added type definitions (#19005)
[is-number] Changed from ES6 default to export=

[is-number] Allow synthetic default imports

[is-number] Change function in tests to pass linter
2017-08-16 10:04:04 -07:00

14 lines
539 B
TypeScript

// Type definitions for is-number 3.0
// Project: https://github.com/jonschlinkert/is-number
// Definitions by: Harry Shipton <https://github.com/harryshipton>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = is_number;
/**
* Will test to see if the argument is a valid number, excluding Infinity and NaN.
* @param {*} num - Any value that should be tested for being a number
* @returns {boolean} - true if the parameter is a valid number, otherwise false
*/
declare function is_number(num: any): boolean;