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

Commit

Permalink
fix(element): Fix typing of then function (#3785)
Browse files Browse the repository at this point in the history
  • Loading branch information
massimocode authored and cnishina committed Dec 15, 2016
1 parent 5a12d69 commit 76cb4b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,9 @@ export class ElementArrayFinder extends WebdriverWebElement {
* @returns {!webdriver.promise.Promise} A promise which will resolve to
* an array of ElementFinders represented by the ElementArrayFinder.
*/
then(fn?: (value: any) => any | wdpromise.IThenable<any>, errorFn?: (error: any) => any):
wdpromise.Promise<any> {
then(
fn?: (value: ElementFinder[]) => any | wdpromise.IThenable<any>,
errorFn?: (error: any) => any): wdpromise.Promise<any> {
if (this.actionResults_) {
return this.actionResults_.then(fn, errorFn);
} else {
Expand Down

0 comments on commit 76cb4b4

Please sign in to comment.