Skip to content

Commit 8e9ad13

Browse files
martinjlowmark120202
authored andcommitted
fix(string): find doesn't have capture group return value types (#11)
1 parent b90fcbd commit 8e9ad13

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/string.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ declare namespace string {
5757
* are also returned, after the two indices.
5858
* @tupleReturn
5959
*/
60-
function find(s: string, pattern: string, init?: number, plain?: boolean): [number, number] | [];
60+
function find(
61+
s: string,
62+
pattern: string,
63+
init?: number,
64+
plain?: boolean,
65+
): [number, number, ...string[]] | [];
6166

6267
/**
6368
* Returns a formatted version of its variable number of arguments following

0 commit comments

Comments
 (0)