mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs(new): add TSDoc comments to Puppeteer (#6032)
This commit is contained in:
committed by
Mathias Bynens
parent
a46c78fc91
commit
f1f7339a3b
@@ -4,6 +4,8 @@
|
||||
|
||||
## Puppeteer.connect() method
|
||||
|
||||
This method attaches Puppeteer to an existing browser instance.
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
@@ -19,9 +21,14 @@ connect(options: BrowserOptions & {
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| options | BrowserOptions & { browserWSEndpoint?: string; browserURL?: string; transport?: ConnectionTransport; product?: string; } | |
|
||||
| options | BrowserOptions & { browserWSEndpoint?: string; browserURL?: string; transport?: ConnectionTransport; product?: string; } | Set of configurable options to set on the browser. |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
Promise<[Browser](./puppeteer.browser.md)<!-- -->>
|
||||
|
||||
Promise which resolves to browser instance.
|
||||
|
||||
## Remarks
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user