@types/mime-db
Advanced tools
Comparing version 1.27.0 to 1.27.1
// Type definitions for mime-db 1.27 | ||
// Project: https://github.com/jshttp/mime-db | ||
// Definitions by: AJP <https://github.com/AJamesPhillips> | ||
// Linus Unnebäck <https://github.com/LinusU> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.2 | ||
/** | ||
* Data Structure | ||
* If unknown, every property could be undefined. | ||
* @see {@link https://github.com/jshttp/mime-db#data-structure} | ||
*/ | ||
export interface DataStructure { | ||
/** where the mime type is defined. If not set, it's probably a custom media type. */ | ||
source?: string; | ||
/** known extensions associated with this mime type. */ | ||
extensions?: string[]; | ||
/** whether a file of this type can be gzipped. */ | ||
compressible?: boolean; | ||
/** the default charset associated with this type, if any. */ | ||
charset?: string; | ||
declare namespace database { | ||
/** | ||
* @see {@link https://github.com/jshttp/mime-db#data-structure} | ||
*/ | ||
interface MimeEntry { | ||
/** Where the mime type is defined. If not set, it's probably a custom media type. */ | ||
readonly source?: string; | ||
/** Known extensions associated with this mime type. */ | ||
readonly extensions?: ReadonlyArray<string>; | ||
/** Whether a file of this type can be gzipped. */ | ||
readonly compressible?: boolean; | ||
/** The default charset associated with this type, if any. */ | ||
readonly charset?: string; | ||
} | ||
/** | ||
* @see {@link https://github.com/jshttp/mime-db#data-structure} | ||
*/ | ||
interface MimeDatabase { | ||
readonly [type: string]: MimeEntry; | ||
} | ||
} | ||
declare const database: database.MimeDatabase; | ||
export = database; |
{ | ||
"name": "@types/mime-db", | ||
"version": "1.27.0", | ||
"version": "1.27.1", | ||
"description": "TypeScript definitions for mime-db", | ||
@@ -9,15 +9,22 @@ "license": "MIT", | ||
"name": "AJP", | ||
"url": "https://github.com/AJamesPhillips" | ||
"url": "https://github.com/AJamesPhillips", | ||
"githubUsername": "AJamesPhillips" | ||
}, | ||
{ | ||
"name": "Linus Unnebäck", | ||
"url": "https://github.com/LinusU", | ||
"githubUsername": "LinusU" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/mime-db" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "0f52e8abb06de5bc5f422eebd28fddabc55f32040d32b524224e892e9f5e0a3d", | ||
"typeScriptVersion": "2.2" | ||
"typesPublisherContentHash": "56815f6963dd277ef6828ee10744c85884829effd1bd3ad2f06644c8e20183fb", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime-db | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime-db. | ||
Additional Details | ||
* Last updated: Mon, 15 May 2017 22:20:54 GMT | ||
### Additional Details | ||
* Last updated: Mon, 30 Mar 2020 22:52:15 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by AJP <https://github.com/AJamesPhillips>. | ||
These definitions were written by [AJP](https://github.com/AJamesPhillips), and [Linus Unnebäck](https://github.com/LinusU). |
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
3690
29