Skip to content

Commit 1507146

Browse files
committed
Auto-generated commit
1 parent 80c0bb5 commit 1507146

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Joey Reed <joeyrreed@gmail.com>
1616
Jordan-Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
1717
Joris Labie <joris.labie1@gmail.com>
1818
Justin Dennison <justin1dennison@gmail.com>
19+
KATTA NAGA NITHIN <88046362+nithinkatta@users.noreply.github.com>
1920
Marcus <mfantham@users.noreply.github.com>
2021
Matt Cochrane <matthew.cochrane.eng@gmail.com>
2122
Milan Raj <rajsite@users.noreply.github.com>

docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface IsString {
3636
* var bool = isString( 'beep' );
3737
* // returns true
3838
*/
39-
( value: any ): boolean;
39+
( value: any ): value is string | String;
4040

4141
/**
4242
* Tests if a value is a string primitive.
@@ -52,7 +52,7 @@ interface IsString {
5252
* var bool = isString.isPrimitive( new String( 'beep' ) );
5353
* // returns false
5454
*/
55-
isPrimitive( value: any ): boolean;
55+
isPrimitive( value: any ): value is string;
5656

5757
/**
5858
* Tests if a value is a string object.
@@ -68,7 +68,7 @@ interface IsString {
6868
* var bool = isString.isObject( 'beep' );
6969
* // returns false
7070
*/
71-
isObject( value: any ): boolean;
71+
isObject( value: any ): value is String;
7272
}
7373

7474
/**

0 commit comments

Comments
 (0)