mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-17 11:14:23 +01:00
fix type
This commit is contained in:
@@ -451,7 +451,7 @@ const getActualMimeTypeFromImage = async (file: Blob | File) => {
|
|||||||
|
|
||||||
export const createFile = (
|
export const createFile = (
|
||||||
blob: File | Blob | ArrayBuffer,
|
blob: File | Blob | ArrayBuffer,
|
||||||
mimeType: ValueOf<typeof MIME_TYPES>,
|
mimeType: string,
|
||||||
name: string | undefined,
|
name: string | undefined,
|
||||||
) => {
|
) => {
|
||||||
return new File([blob], name || "", {
|
return new File([blob], name || "", {
|
||||||
|
|||||||
Reference in New Issue
Block a user