UNPKG

happy-dom

Version:

Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.

36 lines (32 loc) 698 B
import Plugin from './Plugin.js'; /** * MimeType. */ export default class MimeType { public readonly description: string; public readonly enabledPlugin: Plugin; public readonly suffixes: string; public readonly type: string; /** * Constructor. * * @param description * @param enabledPlugin * @param suffixes * @param type */ constructor(description: string, enabledPlugin: Plugin, suffixes: string, type: string) { this.description = description; this.enabledPlugin = enabledPlugin; this.suffixes = suffixes; this.type = type; } /** * Returns the object as a string. * * @returns String. */ public toString(): string { return '[object MimeType]'; } }