Skip to content

Commit 70abb1e

Browse files
committed
fix: string.byte is not annotated with @tupleReturn
Fixes #12.
1 parent 09972f9 commit 70abb1e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/string.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ declare namespace string {
2525
*
2626
* Numeric codes are not necessarily portable across platforms.
2727
*/
28-
function byte(s: string, i?: number, j?: number): number;
28+
function byte(s: string, i?: number): number;
29+
/** @tupleReturn */
30+
function byte(s: string, i?: number, j?: number): number[];
2931

3032
/**
3133
* Receives zero or more integers. Returns a string with length equal to the

0 commit comments

Comments
 (0)