feat: add onUploadProgress to CustomUploadOptions

This commit is contained in:
Derrick Hammer 2024-03-17 13:33:37 -04:00
parent b1179a868f
commit 0dd72358da
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
import { AxiosResponse } from "axios";
import { AxiosProgressEvent } from "axios";
import { DetailedError, HttpRequest, Upload } from "tus-js-client";
import { blake3 } from "@noble/hashes/blake3";
@ -51,6 +51,7 @@ export type CustomUploadOptions = BaseCustomOptions & {
// Large files.
largeFileSize?: number;
retryDelays?: number[];
onUploadProgress?: (progressEvent: AxiosProgressEvent) => void;
};
export const DEFAULT_UPLOAD_OPTIONS = {