Installation
npm install --save @types/mime-db
Summary
This package contains type definitions for mime-db (https://github.com/jshttp/mime-db).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime-db.
declare namespace database {
interface MimeEntry {
readonly source?: MimeSource | undefined;
readonly extensions?: readonly string[] | undefined;
readonly compressible?: boolean | undefined;
readonly charset?: string | undefined;
}
interface MimeDatabase {
readonly [type: string]: MimeEntry;
}
type MimeSource = "iana" | "apache" | "nginx";
}
declare const database: database.MimeDatabase;
export = database;
Additional Details
- Last updated: Mon, 20 Nov 2023 23:36:24 GMT
- Dependencies: none
Credits
These definitions were written by AJP, Linus Unnebäck, and Piotr Błażejewicz.