diff --git a/lib/element.ts b/lib/element.ts index 79b83893a..290216d8e 100644 --- a/lib/element.ts +++ b/lib/element.ts @@ -479,7 +479,7 @@ 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) => {} | wdpromise.IThenable<{}>, errorFn?: (error: any) => any): + then(fn?: (value: any) => any | wdpromise.IThenable, errorFn?: (error: any) => any): wdpromise.Promise { if (this.actionResults_) { return this.actionResults_.then(fn, errorFn);