-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.d.ts
More file actions
37 lines (33 loc) · 694 Bytes
/
index.d.ts
File metadata and controls
37 lines (33 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*!
Copyright 2013 Lovell Fuller and others.
SPDX-License-Identifier: Apache-2.0
*/
export class MediaType {
static parse(mediaType: string): MediaType | null;
constructor(mediaType?: string);
essence: string;
type:
| "application"
| "audio"
| "font"
| "image"
| "haptics"
| "message"
| "model"
| "multipart"
| "text"
| "video"
| "*";
subtype: string;
subtypeFacets: string[];
suffix: string | null;
parameters: Map<string, string>;
hasSuffix(): boolean;
isHTML(): boolean;
isJavaScript(): boolean;
isXML(): boolean;
isPersonal(): boolean;
isExperimental(): boolean;
isVendor(): boolean;
toString(): string;
}