File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
package/src/contexts/messageInputContext Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ export type LocalMessageInputContext<
211211 /** Function for attempting to upload an image */
212212 uploadImage : ( { newImage } : { newImage : ImageUpload } ) => Promise < void > ;
213213 uploadNewFile : ( file : File ) => Promise < void > ;
214- uploadNewImage : ( image : Asset ) => Promise < void > ;
214+ uploadNewImage : ( image : Partial < Asset > ) => Promise < void > ;
215215} ;
216216
217217export type InputMessageInputContextValue <
@@ -1053,7 +1053,7 @@ export const MessageInputProvider = <
10531053 }
10541054 } ;
10551055
1056- const uploadNewImage = async ( image : Asset ) => {
1056+ const uploadNewImage = async ( image : Partial < Asset > ) => {
10571057 const id = generateRandomId ( ) ;
10581058
10591059 const isBlockedImageMimeType = blockedImageMimeTypes ?. some ( ( mimeType : string ) =>
You can’t perform that action at this time.
0 commit comments