@types/mime
Advanced tools
Comparing version 1.3.1 to 2.0.0
@@ -1,20 +0,17 @@ | ||
// Type definitions for mime 1.3 | ||
// Type definitions for mime 2.0 | ||
// Project: https://github.com/broofa/node-mime | ||
// Definitions by: Jeff Goddard <https://github.com/jedigo> | ||
// Daniel Hritzkiv <https://github.com/dhritzkiv> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// Imported from: https://github.com/soywiz/typescript-node-definitions/mime.d.ts | ||
// Originally imported from: https://github.com/soywiz/typescript-node-definitions/mime.d.ts | ||
export as namespace mime; | ||
export function lookup(path: string, fallback?: string): string; | ||
export function extension(mime: string): string; | ||
export function load(filepath: string): void; | ||
export function define(mimes: { [key: string]: any }): void; | ||
export interface TypeMap { [key: string]: string[]; } | ||
export interface Charsets { | ||
lookup(mime: string): string; | ||
} | ||
export function getType(path: string): string | null; | ||
export function getExtension(mime: string): string | null; | ||
export function define(mimes: TypeMap, force?: boolean): void; | ||
export const charsets: Charsets; | ||
export const default_type: string; |
{ | ||
"name": "@types/mime", | ||
"version": "1.3.1", | ||
"version": "2.0.0", | ||
"description": "TypeScript definitions for mime", | ||
@@ -9,3 +9,9 @@ "license": "MIT", | ||
"name": "Jeff Goddard", | ||
"url": "https://github.com/jedigo" | ||
"url": "https://github.com/jedigo", | ||
"githubUsername": "jedigo" | ||
}, | ||
{ | ||
"name": "Daniel Hritzkiv", | ||
"url": "https://github.com/dhritzkiv", | ||
"githubUsername": "dhritzkiv" | ||
} | ||
@@ -20,5 +26,4 @@ ], | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "a202774c75ea5bbc14f80c3c0c6eb0041ff65c04079c674e1b7e3657127f4153", | ||
"typesPublisherContentHash": "719b27892c0327424f3d155be034d74dc26a16ed6022ae6f9a9cb8872f8fa70e", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 20 Jun 2017 20:20:01 GMT | ||
* Last updated: Mon, 18 Sep 2017 14:13:55 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: mime | ||
# Credits | ||
These definitions were written by Jeff Goddard <https://github.com/jedigo>. | ||
These definitions were written by Jeff Goddard <https://github.com/jedigo>, Daniel Hritzkiv <https://github.com/dhritzkiv>. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3403
5
19