Skip to content

Commit 6f10b74

Browse files
tom5760dcodeIO
authored andcommitted
Make isLong a TypeScript type guard (#63)
1 parent 95ac93e commit 6f10b74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ declare class Long {
9999
/**
100100
* Tests if the specified object is a Long.
101101
*/
102-
static isLong(obj: any): boolean;
102+
static isLong(obj: any): obj is Long;
103103

104104
/**
105105
* Converts the specified value to a Long.

0 commit comments

Comments
 (0)