Type Alias OnProgressCallback

OnProgressCallback: (fraction: number) => void

Callback for the progress of a long-running action such as an HTTP request for a large binary object.

fraction should be a number in the [0, 1] interval, indicating how much of the action has completed.

Type declaration

    • (fraction: number): void
    • Parameters

      • fraction: number

      Returns void