1 | // Type definitions for mime-types 2.1
|
2 | // Project: https://github.com/jshttp/mime-types#readme
|
3 | // Definitions by: Gyusun Yeom <https://github.com/Perlmint>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | export function lookup(filenameOrExt: string): string | false;
|
7 | export function contentType(filenameOrExt: string): string | false;
|
8 | export function extension(typeString: string): string | false;
|
9 | export function charset(typeString: string): string | false;
|
10 | export namespace charsets {
|
11 | const lookup: typeof charset;
|
12 | }
|
13 | export const types: {[key: string]: string};
|
14 | export const extensions: {[key: string]: string[]};
|