refactor(components): [upload] fix the type of file (#13637)

change the type of UploadRequestOptions.file from File to UploadRawFile
This commit is contained in:
YangtzeCoder 2023-07-22 10:56:38 +08:00 committed by GitHub
parent 4e7f9b908b
commit 708f6ab5b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ export interface UploadRequestOptions {
method: string
data: Record<string, string | Blob | [string | Blob, string]>
filename: string
file: File
file: UploadRawFile
headers: Headers | Record<string, string | number | null | undefined>
onError: (evt: UploadAjaxError) => void
onProgress: (evt: UploadProgressEvent) => void