mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 13:27:15 +08:00
20 lines
646 B
TypeScript
20 lines
646 B
TypeScript
// Type definitions for mime
|
|
// Project: https://github.com/broofa/node-mime
|
|
// Definitions by: Jeff Goddard <https://github.com/jedigo>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
// Imported from: https://github.com/soywiz/typescript-node-definitions/mime.d.ts
|
|
|
|
|
|
export declare function lookup(path: string): string;
|
|
export declare function extension(mime: string): string;
|
|
export declare function load(filepath: string): void;
|
|
export declare function define(mimes: Object): void;
|
|
|
|
interface Charsets {
|
|
lookup(mime: string): string;
|
|
}
|
|
|
|
export declare var charsets: Charsets;
|
|
export declare var default_type: string;
|