diff --git a/src/lib/utils.ts b/src/lib/utils.ts index c9f5098..06308a2 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -12,7 +12,7 @@ export type WithoutChildren = T extends { children?: any } ? Omit = WithoutChildren>; export type WithElementRef = T & { ref?: U | null }; -export function filtrarImagen(file) { +export function filtrarImagen(file: File) { if (file) { const allowed = ['image/png', 'image/jpg', 'image/jpeg', 'image/gif', 'image/webp']; if (allowed.includes(file.type)) {