Back to Puppeteer

makeProgressCallback() function

website/versioned_docs/version-24.40.0/browsers-api/browsers.makeprogresscallback.md

19.2.2563 B
Original Source

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

</td><td> </td></tr> <tr><td>

buildId

</td><td>

string

</td><td> </td></tr> </tbody></table>

Returns:

(downloadedBytes: number, totalBytes: number) => void