Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 21d534f

Browse files
authored
fix(types): Make element.then()'s signature more broad. (#3719)
1 parent f42e0b3 commit 21d534f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/element.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ export class ElementArrayFinder extends WebdriverWebElement {
479479
* @returns {!webdriver.promise.Promise} A promise which will resolve to
480480
* an array of ElementFinders represented by the ElementArrayFinder.
481481
*/
482-
then(fn?: (value: any) => {} | wdpromise.IThenable<{}>, errorFn?: (error: any) => any):
482+
then(fn?: (value: any) => any | wdpromise.IThenable<any>, errorFn?: (error: any) => any):
483483
wdpromise.Promise<any[]> {
484484
if (this.actionResults_) {
485485
return this.actionResults_.then(fn, errorFn);

0 commit comments

Comments
 (0)