Skip to content

Commit

Permalink
feat: add file type for json (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham authored May 17, 2024
1 parent 632a636 commit 9118ca0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fileTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const mimeTypes = Object.freeze({
doc: 'application/msword',
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
images: 'image/*',
json: 'application/json',
pdf: 'application/pdf',
plainText: 'text/plain',
ppt: 'application/vnd.ms-powerpoint',
Expand All @@ -22,6 +23,7 @@ const utis = Object.freeze({
doc: 'com.microsoft.word.doc',
docx: 'org.openxmlformats.wordprocessingml.document',
images: 'public.image',
json: 'public.json',
pdf: 'com.adobe.pdf',
plainText: 'public.plain-text',
ppt: 'com.microsoft.powerpoint.ppt',
Expand All @@ -40,6 +42,7 @@ const extensions = Object.freeze({
doc: '.doc',
docx: '.docx',
images: '.jpeg .jpg .png',
json: '.json',
pdf: '.pdf',
plainText: '.txt',
ppt: '.ppt',
Expand Down

0 comments on commit 9118ca0

Please sign in to comment.