From 865496307154c624227828a43842ecd75d1042f3 Mon Sep 17 00:00:00 2001 From: fede Date: Mon, 8 Dec 2025 15:06:55 -0300 Subject: [PATCH] =?UTF-8?q?a=C3=B1adido=20tipo=20de=20dato=20a=20filtrarIm?= =?UTF-8?q?agen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {