We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 804dbb1 commit 60c3a68Copy full SHA for 60c3a68
2 files changed
index.d.ts
@@ -9,7 +9,18 @@ export class MediaType {
9
constructor(mediaType?: string);
10
11
essence: string;
12
- type: string;
+ type:
13
+ | "application"
14
+ | "audio"
15
+ | "font"
16
+ | "image"
17
+ | "haptics"
18
+ | "message"
19
+ | "model"
20
+ | "multipart"
21
+ | "text"
22
+ | "video"
23
+ | "*";
24
subtype: string;
25
subtypeFacets: string[];
26
suffix: string | null;
test/index.test-d.ts
@@ -7,7 +7,7 @@
7
8
import { MediaType } from "..";
-const input: string = "a/b+c";
+const input: string = "application/test+json; charset=utf-8";
const mediaTypeConstructed: MediaType = new MediaType(input);
0 commit comments