mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +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({});
|