PollProgressCallback type

PollProgressCallback is the type of the callback functions sent to onProgress. These functions will receive a TState that is defined by your implementation of the Poller class.

type PollProgressCallback<TState> = (state: TState) => void