mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
243 B
TypeScript
17 lines
243 B
TypeScript
import isInteger = require("is-integer");
|
|
|
|
// $ExpectType boolean
|
|
isInteger("hello");
|
|
|
|
// $ExpectType boolean
|
|
isInteger(4);
|
|
|
|
// $ExpectType boolean
|
|
isInteger(4.0);
|
|
|
|
// $ExpectType boolean
|
|
isInteger(4.1);
|
|
|
|
// $ExpectType boolean
|
|
isInteger({});
|