UNPKG

hono

Version:

Web framework built on Web Standards

13 lines (12 loc) 1.22 kB
/** * @module * MIME utility. */ export declare const getMimeType: (filename: string, mimes?: Record<string, string>) => string | undefined; export declare const getExtension: (mimeType: string) => string | undefined; export { baseMimes as mimes }; /** * Union types for BaseMime */ export type BaseMime = "audio/aac" | "video/x-msvideo" | "image/avif" | "video/av1" | "application/octet-stream" | "image/bmp" | "text/css" | "text/csv" | "application/vnd.ms-fontobject" | "application/epub+zip" | "image/gif" | "application/gzip" | "text/html" | "image/x-icon" | "text/calendar" | "image/jpeg" | "text/javascript" | "application/json" | "application/ld+json" | "audio/x-midi" | "audio/mpeg" | "video/mp4" | "video/mpeg" | "audio/ogg" | "video/ogg" | "application/ogg" | "audio/opus" | "font/otf" | "application/pdf" | "image/png" | "application/rtf" | "image/svg+xml" | "image/tiff" | "video/mp2t" | "font/ttf" | "text/plain" | "application/wasm" | "video/webm" | "audio/webm" | "image/webp" | "font/woff" | "font/woff2" | "application/xhtml+xml" | "application/xml" | "application/zip" | "video/3gpp" | "video/3gpp2" | "model/gltf+json" | "model/gltf-binary"; declare const baseMimes: Record<string, BaseMime>;