puppeteer/website/versioned_docs/version-22.11.0/browsers-api/browsers.makeprogresscallback.md

57 lines
609 B
Markdown
Raw Normal View History

---
sidebar_label: makeProgressCallback
---
# makeProgressCallback() function
#### Signature:
```typescript
export declare function makeProgressCallback(
browser: Browser,
buildId: string
): (downloadedBytes: number, totalBytes: number) => void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
browser
</td><td>
[Browser](./browsers.browser.md)
</td><td>
</td></tr>
<tr><td>
buildId
</td><td>
string
</td><td>
</td></tr>
</tbody></table>
**Returns:**
(downloadedBytes: number, totalBytes: number) =&gt; void