Installation
npm install --save @types/whatwg-mimetype
Summary
This package contains type definitions for whatwg-mimetype (https://github.com/jsdom/whatwg-mimetype#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/whatwg-mimetype.
export = MIMEType;
declare class MIMEType {
type: string;
subtype: string;
readonly essence: string;
readonly parameters: Map<string, string>;
static parse(s: string): MIMEType | null;
constructor(s: string);
isHTML(): boolean;
isXML(): boolean;
isJavaScript(opts?: { allowParameters?: boolean | undefined }): boolean;
}
Additional Details
- Last updated: Fri, 02 Jul 2021 18:05:36 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Pete Johanson.