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

Commit 76cb4b4

Browse files
massimocodecnishina
authored andcommitted
fix(element): Fix typing of then function (#3785)
1 parent 5a12d69 commit 76cb4b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/element.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,9 @@ export class ElementArrayFinder extends WebdriverWebElement {
529529
* @returns {!webdriver.promise.Promise} A promise which will resolve to
530530
* an array of ElementFinders represented by the ElementArrayFinder.
531531
*/
532-
then(fn?: (value: any) => any | wdpromise.IThenable<any>, errorFn?: (error: any) => any):
533-
wdpromise.Promise<any> {
532+
then(
533+
fn?: (value: ElementFinder[]) => any | wdpromise.IThenable<any>,
534+
errorFn?: (error: any) => any): wdpromise.Promise<any> {
534535
if (this.actionResults_) {
535536
return this.actionResults_.then(fn, errorFn);
536537
} else {

0 commit comments

Comments
 (0)