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 ElementFinder.then
Browse files Browse the repository at this point in the history
  • Loading branch information
massimocode committed Dec 16, 2016
1 parent 76cb4b4 commit 1b0aa6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,9 @@ export class ElementArrayFinder extends WebdriverWebElement {
export class ElementFinder extends WebdriverWebElement {
parentElementArrayFinder: ElementArrayFinder;
elementArrayFinder_: ElementArrayFinder;
then: (fn: Function, errorFn?: Function) => wdpromise.Promise<any> = null;
then?:
(fn: (value: any) => {} | wdpromise.IThenable<any>,
errorFn?: (error: any) => any) => wdpromise.Promise<any> = null;

constructor(public browser_: ProtractorBrowser, elementArrayFinder: ElementArrayFinder) {
super();
Expand Down

0 comments on commit 1b0aa6f

Please sign in to comment.