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

Commit

Permalink
chore(types): fix types for element.all(...) (#3656)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 authored and cnishina committed Oct 26, 2016
1 parent b67d8eb commit 3e4bc27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function ptorMixin(to: any, from: any, fnName: string, setupFn?: Function) {

export interface ElementHelper extends Function {
(locator: Locator): ElementFinder;
all?: (locator: Locator) => ElementArrayFinder;
all: (locator: Locator) => ElementArrayFinder;
}

/**
Expand All @@ -100,9 +100,9 @@ export interface ElementHelper extends Function {
* @returns {function(webdriver.Locator): ElementFinder}
*/
function buildElementHelper(browser: ProtractorBrowser): ElementHelper {
let element: ElementHelper = (locator: Locator) => {
let element = ((locator: Locator) => {
return new ElementArrayFinder(browser).all(locator).toElementFinder_();
};
}) as ElementHelper;

element.all =
(locator: Locator) => {
Expand Down

0 comments on commit 3e4bc27

Please sign in to comment.