puppeteer/website/versioned_docs/version-22.6.3/browsers-api/browsers.launchoptions.md

205 lines
1.3 KiB
Markdown
Raw Normal View History

---
sidebar_label: LaunchOptions
---
# LaunchOptions interface
#### Signature:
```typescript
export interface LaunchOptions
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th><th>
Default
</th></tr></thead>
<tbody><tr><td>
args
</td><td>
`optional`
</td><td>
string\[\]
</td><td>
</td><td>
</td></tr>
<tr><td>
detached
</td><td>
`optional`
</td><td>
boolean
</td><td>
</td><td>
</td></tr>
<tr><td>
dumpio
</td><td>
`optional`
</td><td>
boolean
</td><td>
</td><td>
</td></tr>
<tr><td>
env
</td><td>
`optional`
</td><td>
Record&lt;string, string \| undefined&gt;
</td><td>
</td><td>
</td></tr>
<tr><td>
executablePath
</td><td>
</td><td>
string
</td><td>
</td><td>
</td></tr>
<tr><td>
handleSIGHUP
</td><td>
`optional`
</td><td>
boolean
</td><td>
</td><td>
</td></tr>
<tr><td>
handleSIGINT
</td><td>
`optional`
</td><td>
boolean
</td><td>
</td><td>
</td></tr>
<tr><td>
handleSIGTERM
</td><td>
`optional`
</td><td>
boolean
</td><td>
</td><td>
</td></tr>
<tr><td>
onExit
</td><td>
`optional`
</td><td>
() =&gt; Promise&lt;void&gt;
</td><td>
</td><td>
</td></tr>
<tr><td>
pipe
</td><td>
`optional`
</td><td>
boolean
</td><td>
</td><td>
</td></tr>
</tbody></table>