Skip to content

Commit 9118ca0

Browse files
authored
feat: add file type for json (#718)
1 parent 632a636 commit 9118ca0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/fileTypes.ts

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const mimeTypes = Object.freeze({
55
doc: 'application/msword',
66
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
77
images: 'image/*',
8+
json: 'application/json',
89
pdf: 'application/pdf',
910
plainText: 'text/plain',
1011
ppt: 'application/vnd.ms-powerpoint',
@@ -22,6 +23,7 @@ const utis = Object.freeze({
2223
doc: 'com.microsoft.word.doc',
2324
docx: 'org.openxmlformats.wordprocessingml.document',
2425
images: 'public.image',
26+
json: 'public.json',
2527
pdf: 'com.adobe.pdf',
2628
plainText: 'public.plain-text',
2729
ppt: 'com.microsoft.powerpoint.ppt',
@@ -40,6 +42,7 @@ const extensions = Object.freeze({
4042
doc: '.doc',
4143
docx: '.docx',
4244
images: '.jpeg .jpg .png',
45+
json: '.json',
4346
pdf: '.pdf',
4447
plainText: '.txt',
4548
ppt: '.ppt',

0 commit comments

Comments
 (0)