File tree 11 files changed +11
-11
lines changed
lib/node_modules/@stdlib/assert
is-uint16array/docs/types
is-uint32array/docs/types
is-uint8clampedarray/docs/types
is-undefined-or-null/docs/types
is-unity-probability-array/docs/types
11 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 32
32
* var bool = isUint16Array( [] );
33
33
* // returns false
34
34
*/
35
- declare function isUint16Array ( value : any ) : boolean ;
35
+ declare function isUint16Array ( value : any ) : value is Uint16Array ;
36
36
37
37
38
38
// EXPORTS //
Original file line number Diff line number Diff line change 32
32
* var bool = isUint32Array( [] );
33
33
* // returns false
34
34
*/
35
- declare function isUint32Array ( value : any ) : boolean ;
35
+ declare function isUint32Array ( value : any ) : value is Uint32Array ;
36
36
37
37
38
38
// EXPORTS //
Original file line number Diff line number Diff line change 32
32
* var bool = isUint8Array( [] );
33
33
* // returns false
34
34
*/
35
- declare function isUint8Array ( value : any ) : boolean ;
35
+ declare function isUint8Array ( value : any ) : value is Uint8Array ;
36
36
37
37
38
38
// EXPORTS //
Original file line number Diff line number Diff line change 32
32
* var bool = isUint8ClampedArray( [] );
33
33
* // returns false
34
34
*/
35
- declare function isUint8ClampedArray ( value : any ) : boolean ;
35
+ declare function isUint8ClampedArray ( value : any ) : value is Uint8ClampedArray ;
36
36
37
37
38
38
// EXPORTS //
Original file line number Diff line number Diff line change 32
32
* var bool = isUNCPath( '/foo/bar/baz' );
33
33
* // returns false
34
34
*/
35
- declare function isUNCPath ( value : any ) : boolean ;
35
+ declare function isUNCPath ( value : any ) : value is string ;
36
36
37
37
38
38
// EXPORTS //
Original file line number Diff line number Diff line change 34
34
* bool = isUndefinedOrNull( false );
35
35
* // returns false
36
36
*/
37
- declare function isUndefinedOrNull ( value : any ) : boolean ;
37
+ declare function isUndefinedOrNull ( value : any ) : value is null | undefined ;
38
38
39
39
40
40
// EXPORTS //
Original file line number Diff line number Diff line change 31
31
* bool = isUndefined( null );
32
32
* // returns false
33
33
*/
34
- declare function isUndefined ( value : any ) : boolean ;
34
+ declare function isUndefined ( value : any ) : value is undefined ;
35
35
36
36
37
37
// EXPORTS //
Original file line number Diff line number Diff line change 40
40
* var bool = isUnityProbabilityArray( [ 3.14, 0.0 ] );
41
41
* // returns false
42
42
*/
43
- declare function isUnityProbabilityArray ( v : any ) : boolean ;
43
+ declare function isUnityProbabilityArray ( v : any ) : v is ArrayLike < number > ;
44
44
45
45
46
46
// EXPORTS //
Original file line number Diff line number Diff line change 40
40
* var bool = isUppercase( 'salt and light' );
41
41
* // returns false
42
42
*/
43
- declare function isUppercase ( value : any ) : boolean ;
43
+ declare function isUppercase ( value : any ) : value is string ;
44
44
45
45
46
46
// EXPORTS //
Original file line number Diff line number Diff line change 36
36
* var bool = isURIError( {} );
37
37
* // returns false
38
38
*/
39
- declare function isURIError ( value : any ) : boolean ;
39
+ declare function isURIError ( value : any ) : value is URIError ;
40
40
41
41
42
42
// EXPORTS //
Original file line number Diff line number Diff line change 119
119
* var bool = isURI( 'http://example.w3.org/%at' );
120
120
* // returns false
121
121
*/
122
- declare function isURI ( value : any ) : boolean ;
122
+ declare function isURI ( value : any ) : value is string ;
123
123
124
124
125
125
// EXPORTS //
You can’t perform that action at this time.
0 commit comments