t×tecexpressby TeKOcloud
DEv0.7.1
API & types / VUE

TxUploadContext.

Cancellation and progress reporting for one upload operation; progress is reported in bytes.

ts
interface TxUploadContext {
  signal: AbortSignal
  onProgress: (loaded: number, total: number) => void
}
FieldMeaning
signalAbortSignal for cooperative cancellation.
onProgressReports completed bytes and total size.
ts
import type { TxUploadContext } from '@tekocloud.de/tecexpress'
const example: TxUploadContext = { signal: new AbortController().signal, onProgress: (loaded, total) => console.log(loaded, total) }
console.log(example)