mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore(docs): fix incorrect @returns on getter (#6175)
On a getter function you don't use `@returns` (as that's just for methods). Instead we can just add to the general remarks to explain what the property is providing.
This commit is contained in:
@@ -14,7 +14,7 @@ get errors(): PuppeteerErrors;
|
||||
|
||||
Puppeteer methods might throw errors if they are unable to fulfill a request. For example, `page.waitForSelector(selector[, options])` might fail if the selector doesn't match any nodes during the given timeframe.
|
||||
|
||||
For certain types of errors Puppeteer uses specific error classes. These classes are available via `puppeteer.errors`
|
||||
For certain types of errors Puppeteer uses specific error classes. These classes are available via `puppeteer.errors`<!-- -->.
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
Reference in New Issue
Block a user