123456789101112131415161718192021 |
- interface MIMEType {
- type: string
- subtype: string
- parameters: Map<string, string>
- essence: string
- }
- export function parseMIMEType (input: string): 'failure' | MIMEType
- /**
- * Convert a MIMEType object to a string.
- * @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type
- */
- export function serializeAMimeType (mimeType: MIMEType): string
|