webdriverio/webdriverio

[馃摉 Docs]: AsyncIterators

Open

#13,919 opened on Nov 25, 2024

View on GitHub
聽(2 comments)聽(0 reactions)聽(0 assignees)JavaScript聽(6,029 stars)聽(1,793 forks)batch import
Docs 馃摉help wanted

Description

Pre-check

  • I know I can edit the docs but prefer to file this issue

Describe the improvement

Missing documentation

Description of the improvement / report

I'm learning the API and stumbled upon the iterator functions provided by $$() (ChainablePromiseArray). I wondered what the difference between map() and mapSeries() were, but did not find any usable information in the Documentation. Neither a search in the WebdriverIO API documentation nor the type definitions (node_modules/webdriverio/build/types.d.ts) held any information. I had to look at the implementation to find the documentation strings: https://github.com/webdriverio/webdriverio/blob/main/packages/wdio-utils/src/pIteration.ts#L31

I suggest that there should be a dedicated Section about the AsyncIterators and that the doc comments are also added to the type definition files.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Contributor guide

[馃摉 Docs]: AsyncIterators 路 webdriverio/webdriverio#13919 | Good First Issue