mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-03 03:44:29 +08:00
12 lines
576 B
TypeScript
12 lines
576 B
TypeScript
// Type definitions for mime-types 2.1
|
|
// Project: https://github.com/jshttp/mime-types#readme
|
|
// Definitions by: Gyusun Yeom <https://github.com/Perlmint>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export function lookup(filenameOrExt: string): string | false;
|
|
export function contentType(filenameOrExt: string): string | false;
|
|
export function extension(typeString: string): string | false;
|
|
export function charset(typeString: string): string | false;
|
|
export const types: {[key: string]: string};
|
|
export const extensions: {[key: string]: string[]};
|