Skip to content

Commit 9d3ad81

Browse files
committed
Fix locator typings in Command
The third generic field for Locator should have been be a 'pass thru' typing for Command, using StringResult rather than string. fixes #172
1 parent f3673b8 commit 9d3ad81

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10054,8 +10054,8 @@
1005410054
"name": "P"
1005510055
},
1005610056
{
10057-
"type": "intrinsic",
10058-
"name": "string"
10057+
"type": "typeParameter",
10058+
"name": "StringResult"
1005910059
}
1006010060
]
1006110061
}

src/Command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export default class Command<T, P = any, StringResult = string>
161161
extends Locator<
162162
Command<Element, P, string>,
163163
Command<Element[], P, string[]>,
164-
Command<void, P, string>
164+
Command<void, P, StringResult>
165165
>
166166
implements PromiseLike<T> {
167167
/**

0 commit comments

Comments
 (0)