Skip to content

Commit 28923f0

Browse files
committed
chore: tweak return type
1 parent 227a77b commit 28923f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/user-event/type/parseKeys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function parseKeys(text: string) {
1717
return result;
1818
}
1919

20-
function getNextToken(text: string) {
20+
function getNextToken(text: string): [string, string] {
2121
// Detect `{{` => escaped `{`
2222
if (text[0] === '{' && text[1] === '{') {
2323
return ['{', text.slice(2)];

0 commit comments

Comments
 (0)