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

Commit 3e4bc27

Browse files
thorn0cnishina
authored andcommitted
chore(types): fix types for element.all(...) (#3656)
1 parent b67d8eb commit 3e4bc27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: lib/browser.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function ptorMixin(to: any, from: any, fnName: string, setupFn?: Function) {
8989

9090
export interface ElementHelper extends Function {
9191
(locator: Locator): ElementFinder;
92-
all?: (locator: Locator) => ElementArrayFinder;
92+
all: (locator: Locator) => ElementArrayFinder;
9393
}
9494

9595
/**
@@ -100,9 +100,9 @@ export interface ElementHelper extends Function {
100100
* @returns {function(webdriver.Locator): ElementFinder}
101101
*/
102102
function buildElementHelper(browser: ProtractorBrowser): ElementHelper {
103-
let element: ElementHelper = (locator: Locator) => {
103+
let element = ((locator: Locator) => {
104104
return new ElementArrayFinder(browser).all(locator).toElementFinder_();
105-
};
105+
}) as ElementHelper;
106106

107107
element.all =
108108
(locator: Locator) => {

0 commit comments

Comments
 (0)