Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/sinco/tests/deps.ts>Drash.Interfaces.IMime

Browser Automation and Testing Tool for Deno, written in full TypeScript
Latest
interface Drash.Interfaces.IMime
import { type Drash } from "https://deno.land/x/sinco@v4.1.0/tests/deps.ts";
const { IMime } = Drash.Interfaces;

This is used to type a MIME type object. Below are more details on the members in this interface.

[key: string] The MIME type (e.g., application/json).

[key: string].charset?: string; The character encoding of the MIME type.

[key: string].compressible?: boolean; Is this MIME type compressible?

[key: string].extensions?: string[] An array of extensions that match this MIME type.

[key: string].source?: string; where the mime type is defined. If not set, it's probably a custom media type. - apache - Apache common media types - iana - IANA-defined media types - nginx - nginx media types

Index Signatures

[key: string]: { charset?: string; compressible?: boolean; extensions?: string[]; source?: string; }