@types/mime-db
TypeScript definitions for mime-db
Last updated 2 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/mime-db 
SYNC missed versions from official npm registry.

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.

index.d.ts

declare namespace database {
    /**
     * @see {@link https://github.com/jshttp/mime-db#data-structure}
     */
    interface MimeEntry {
        /**
         * Where the mime type is defined.
         * If not set, it's probably a custom media type.
         */
        readonly source?: MimeSource | undefined;
        /** Known extensions associated with this mime type. */
        readonly extensions?: readonly string[] | undefined;
        /** Whether a file of this type can be gzipped. */
        readonly compressible?: boolean | undefined;
        /** The default charset associated with this type, if any. */
        readonly charset?: string | undefined;
    }

    /**
     * @see {@link https://github.com/jshttp/mime-db#data-structure}
     */
    interface MimeDatabase {
        readonly [type: string]: MimeEntry;
    }

    /**
     * Sources:
     * http://www.iana.org/assignments/media-types/media-types.xhtml
     * http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
     * http://hg.nginx.org/nginx/raw-file/default/conf/mime.types
     */
    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.

Current Tags

  • 1.43.5                                ...           latest (2 years ago)
  • 1.27.0                                ...           ts2.2 (9 years ago)
  • 1.27.0                                ...           ts2.3 (9 years ago)
  • 1.27.0                                ...           ts2.4 (9 years ago)
  • 1.27.0                                ...           ts2.5 (9 years ago)
  • 1.27.0                                ...           ts2.6 (9 years ago)
  • 1.27.0                                ...           ts2.7 (9 years ago)
  • 1.43.0                                ...           ts2.8 (6 years ago)
  • 1.43.0                                ...           ts2.9 (6 years ago)
  • 1.43.0                                ...           ts3.0 (6 years ago)
  • 1.43.0                                ...           ts3.1 (6 years ago)
  • 1.43.0                                ...           ts3.2 (6 years ago)
  • 1.43.0                                ...           ts3.3 (6 years ago)
  • 1.43.0                                ...           ts3.4 (6 years ago)
  • 1.43.0                                ...           ts3.5 (6 years ago)
  • 1.43.1                                ...           ts3.6 (5 years ago)
  • 1.43.1                                ...           ts3.7 (5 years ago)
  • 1.43.1                                ...           ts3.8 (5 years ago)
  • 1.43.1                                ...           ts3.9 (5 years ago)
  • 1.43.1                                ...           ts4.0 (5 years ago)
  • 1.43.1                                ...           ts4.1 (5 years ago)
  • 1.43.1                                ...           ts4.2 (5 years ago)
  • 1.43.1                                ...           ts4.3 (5 years ago)
  • 1.43.1                                ...           ts4.4 (5 years ago)
  • 1.43.5                                ...           ts4.5 (2 years ago)
  • 1.43.5                                ...           ts4.6 (2 years ago)
  • 1.43.5                                ...           ts4.7 (2 years ago)
  • 1.43.5                                ...           ts4.8 (2 years ago)
  • 1.43.5                                ...           ts4.9 (2 years ago)
  • 1.43.5                                ...           ts5.0 (2 years ago)
  • 1.43.5                                ...           ts5.1 (2 years ago)
  • 1.43.5                                ...           ts5.2 (2 years ago)
  • 1.43.5                                ...           ts5.3 (2 years ago)
  • 1.43.5                                ...           ts5.4 (2 years ago)
  • 1.43.5                                ...           ts5.5 (2 years ago)
  • 1.43.5                                ...           ts5.6 (2 years ago)
  • 1.43.5                                ...           ts5.7 (2 years ago)
  • 1.43.5                                ...           ts5.8 (2 years ago)

8 Versions

  • 1.43.5                                ...           2 years ago
  • 1.43.4                                ...           2 years ago
  • 1.43.3                                ...           2 years ago
  • 1.43.2                                ...           3 years ago
  • 1.43.1                                ...           5 years ago
  • 1.43.0                                ...           6 years ago
  • 1.27.1                                ...           6 years ago
  • 1.27.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |