|
1 | 1 | export as namespace jsminiIs;
|
2 | 2 |
|
3 | 3 | export function isInRange (x: number, min?: number, max?: number): boolean;
|
4 |
| -export function isNumber (x: any, min?: number, max?: number): boolean; |
5 |
| -export function isInteger (x: any, min?: number, max?: number): boolean; |
6 |
| -export function isInt (x: any): boolean; |
7 |
| -export function isBoolean (x: any): boolean; |
8 |
| -export function isString (x: any): boolean; |
| 4 | +export function isNumber (x: any, min?: number, max?: number): x is number; |
| 5 | +export function isInteger (x: any, min?: number, max?: number): x is number; |
| 6 | +export function isInt (x: any): x is number; |
| 7 | +export function isBoolean (x: any): x is boolean; |
| 8 | +export function isString (x: any): x is string; |
9 | 9 | export function isEmptyString (x: any): boolean;
|
10 |
| -export function isNull (x: any): boolean; |
11 |
| -export function isUndefined (x: any): boolean; |
12 |
| -export function isObject (x: any): boolean; |
13 |
| -export function isFunction (x: any): boolean; |
14 |
| -export function isArray (x: any): boolean; |
| 10 | +export function isNull (x: any): x is null; |
| 11 | +export function isUndefined (x: any): x is undefined; |
| 12 | +export function isObject (x: any): x is object; |
| 13 | +export function isFunction (x: any): x is (...any) => any; |
| 14 | +export function isArray (x: any): x is any[]; |
0 commit comments