File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ Joey Reed <joeyrreed@gmail.com>
16
16
Jordan-Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
17
17
Joris Labie <joris.labie1@gmail.com>
18
18
Justin Dennison <justin1dennison@gmail.com>
19
+ KATTA NAGA NITHIN <88046362+nithinkatta@users.noreply.github.com>
19
20
Marcus <mfantham@users.noreply.github.com>
20
21
Matt Cochrane <matthew.cochrane.eng@gmail.com>
21
22
Milan Raj <rajsite@users.noreply.github.com>
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ interface IsSafeInteger {
48
48
* var bool = isSafeInteger( null );
49
49
* // returns false
50
50
*/
51
- ( value : any ) : boolean ;
51
+ ( value : any ) : value is number | Number ;
52
52
53
53
/**
54
54
* Tests if a value is a number primitive having a safe integer value.
@@ -64,7 +64,7 @@ interface IsSafeInteger {
64
64
* var bool = isSafeInteger.isPrimitive( new Number( -3.0 ) );
65
65
* // returns false
66
66
*/
67
- isPrimitive ( value : any ) : boolean ;
67
+ isPrimitive ( value : any ) : value is number ;
68
68
69
69
70
70
/**
@@ -81,7 +81,7 @@ interface IsSafeInteger {
81
81
* var bool = isSafeInteger.isObject( new Number( 3.0 ) );
82
82
* // returns true
83
83
*/
84
- isObject ( value : any ) : boolean ;
84
+ isObject ( value : any ) : value is Number ;
85
85
}
86
86
87
87
/**
You can’t perform that action at this time.
0 commit comments