File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
lib/node_modules/@stdlib/assert
is-object-array/docs/types Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 34
34
* bool = isObjectArray( [ {}, '3.0' ] );
35
35
* // returns false
36
36
*/
37
- declare function isObjectArray ( value : any ) : boolean ;
37
+ declare function isObjectArray ( value : any ) : value is ArrayLike < Object > ;
38
38
39
39
40
40
// EXPORTS //
Original file line number Diff line number Diff line change 32
32
* var bool = isObject( null );
33
33
* // returns false
34
34
*/
35
- declare function isObject ( value : any ) : boolean ;
35
+ declare function isObject ( value : any ) : value is Object ;
36
36
37
37
38
38
// EXPORTS //
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ interface IsOdd {
52
52
* var bool = isOdd( null );
53
53
* // returns false
54
54
*/
55
- ( value : any ) : boolean ;
55
+ ( value : any ) : value is number | Number ;
56
56
57
57
/**
58
58
* Tests if a value is a number primitive that is an odd number.
@@ -68,7 +68,7 @@ interface IsOdd {
68
68
* var bool = isOdd.isPrimitive( new Number( -5.0 ) );
69
69
* // returns false
70
70
*/
71
- isPrimitive ( value : any ) : boolean ;
71
+ isPrimitive ( value : any ) : value is number ;
72
72
73
73
/**
74
74
* Tests if a value is a number object that is an odd number.
@@ -84,7 +84,7 @@ interface IsOdd {
84
84
* var bool = isOdd.isObject( new Number( 5.0 ) );
85
85
* // returns true
86
86
*/
87
- isObject ( value : any ) : boolean ;
87
+ isObject ( value : any ) : value is Number ;
88
88
}
89
89
90
90
/**
You can’t perform that action at this time.
0 commit comments