tipoArquivo

This commit is contained in:
Luiz Silva 2024-09-16 19:53:13 -03:00
parent e87d0a0239
commit eae585645d
5 changed files with 51 additions and 5 deletions

10
dist/extensoes.d.ts vendored
View file

@ -1,5 +1,13 @@
type tiposArquivo = "imagem" | "documento" | "vídeo" | "outros";
export declare const extensoes: {
ext: string;
tipo: "imagem" | "documento" | "vídeo";
tipo: tiposArquivo;
mime: string;
}[];
/**
* Função que retorna o tipo do arquivo
* @param nomeArquivo
* @returns
*/
export declare const tipoArquivo: (nomeArquivo: string | null | undefined) => tiposArquivo;
export {};