source: imaps-frontend/node_modules/undici-types/content-type.d.ts

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 561 bytes
Line 
1/// <reference types="node" />
2
3interface MIMEType {
4 type: string
5 subtype: string
6 parameters: Map<string, string>
7 essence: string
8}
9
10/**
11 * Parse a string to a {@link MIMEType} object. Returns `failure` if the string
12 * couldn't be parsed.
13 * @see https://mimesniff.spec.whatwg.org/#parse-a-mime-type
14 */
15export function parseMIMEType (input: string): 'failure' | MIMEType
16
17/**
18 * Convert a MIMEType object to a string.
19 * @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type
20 */
21export function serializeAMimeType (mimeType: MIMEType): string
Note: See TracBrowser for help on using the repository browser.