fix(upload): onBeforeUpload type error (#3634)

* fix(type): upload onBeforeUpload

* Update interface.ts
This commit is contained in:
Zhao 2022-09-01 00:53:27 +08:00 committed by GitHub
parent e2c8240012
commit ef55c4bdc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ export interface UploadInst {
export type OnBeforeUpload = (data: {
file: SettledFileInfo
fileList: SettledFileInfo[]
}) => Promise<unknown>
}) => Promise<boolean> | boolean | void
export type ListType = 'text' | 'image' | 'image-card'