Aller au contenu principal

@php-wasm/progress

Index

Type Aliases

DoneEvent

DoneEvent: CustomEvent<ProgressDetails>

Custom event providing progress details when the task is done.

DownloadProgressCallback

DownloadProgressCallback: (progress: DownloadProgress) => void

Type declaration

Listener

Listener<T>: (event: T) => void

Type parameters

  • T

Type declaration

    • (event: T): void
    • Listener A function for handling specific event types.


      Parameters

      • event: T

        The event of type T.

      Returns void

LoadingEvent

LoadingEvent: CustomEvent<{ loaded: number; total: number }>

Custom event providing information about a loading process.

ProgressMode

ProgressMode: REAL_TIME | SLOWLY_INCREMENT

ProgressObserverEvent

ProgressObserverEvent: { caption: string; mode: ProgressMode; progress: number }

Type declaration

ProgressTrackerEvent

ProgressTrackerEvent: CustomEvent<ProgressDetails>

Custom event providing progress details.

TSCompatibleListener

TSCompatibleListener<T>: EventListenerOrEventListenerObject | null | Listener<T>

Type parameters

  • T