mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
first batch: the easy pickings - as per https://github.com/borisyankov/DefinitelyTyped/issues/115 - added DT headers (scraped creators from git history) - added tests - some modifications - added CONTRIBUTORS.md for the substantial defs (>50 LOC)
20 lines
591 B
TypeScript
20 lines
591 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/borisyankov/DefinitelyTyped
|
|
|
|
// Imported from: https://github.com/soywiz/typescript-node-definitions/mime.d.ts
|
|
|
|
declare module "mime" {
|
|
export function lookup(path: string): string;
|
|
export function extension(mime: string): string;
|
|
export function load(filepath: string): void;
|
|
export function define(mimes: Object): void;
|
|
|
|
interface Charsets {
|
|
lookup(mime: string): string;
|
|
}
|
|
|
|
export var charsets: Charsets;
|
|
}
|