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

Commit 97c482c

Browse files
committed
docs(element): Clean up return types for .each() and .then() (#3209)
Fixes #3028
1 parent f205518 commit 97c482c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/element.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ export class ElementArrayFinder {
438438
* @param {function(Array.<ElementFinder>)} fn
439439
* @param {function(Error)} errorFn
440440
*
441-
* @type {webdriver.promise.Promise} a promise which will resolve to
441+
* @return {!webdriver.promise.Promise} A promise which will resolve to
442442
* an array of ElementFinders represented by the ElementArrayFinder.
443443
*/
444444
then(fn: Function, errorFn: Function): webdriver.Promise {
@@ -470,6 +470,10 @@ export class ElementArrayFinder {
470470
* });
471471
*
472472
* @param {function(ElementFinder)} fn Input function
473+
*
474+
* @return {!webdriver.promise.Promise} A promise that will resolve when the
475+
* function has been called on all the ElementFinders. The promise will
476+
* resolve to null.
473477
*/
474478
each(fn: Function): webdriver.Promise {
475479
return this.map(fn).then((): any => { return null; });

0 commit comments

Comments
 (0)