Skip to content

Commit

Permalink
fix: return type of upload file callback
Browse files Browse the repository at this point in the history
  • Loading branch information
tiavina-mika committed Aug 2, 2024
1 parent 7d920fd commit 3da1fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export type ImageUploadOptions = {
* @param file
* @returns
*/
uploadFile?: (file: File) => Promise<string | UploadResponse>;
uploadFile?: (file: File) => Promise<string | UploadResponse | undefined>;
/**
* maximum size of the image in MB (each image)
* @default 10mb
Expand Down

0 comments on commit 3da1fda

Please sign in to comment.