UNPKG

1.03 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/mime-types`
3
4# Summary
5This package contains type definitions for mime-types (https://github.com/jshttp/mime-types#readme).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime-types.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime-types/index.d.ts)
10````ts
11export function lookup(filenameOrExt: string): string | false;
12export function contentType(filenameOrExt: string): string | false;
13export function extension(typeString: string): string | false;
14export function charset(typeString: string): string | false;
15export namespace charsets {
16 const lookup: typeof charset;
17}
18export const types: { [key: string]: string };
19export const extensions: { [key: string]: string[] };
20
21````
22
23### Additional Details
24 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
25 * Dependencies: none
26
27# Credits
28These definitions were written by [Gyusun Yeom](https://github.com/Perlmint).
29
\No newline at end of file