DefinitelyTyped/types/mime-db/index.d.ts
Alexander James Phillips ae60b8ca46 Move hapi dependencies to own modules
catbox, h2o2, mime-db, mimos, podium, shot, vision
Add tests where possible.
Add note regarding apparent failure of some nested object literals to enforce typings
2017-05-07 15:04:37 +01:00

22 lines
782 B
TypeScript

// Type definitions for mime-db 1.27
// Project: https://github.com/jshttp/mime-db
// Definitions by: AJP <https://github.com/AJamesPhillips>
// 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;
}