jshttp / mime-db

Media Type Database
MIT License
1.12k stars 260 forks source link

Add Typescript Definitions for all mime types #252

Closed JustusFluegel closed 2 years ago

JustusFluegel commented 2 years ago

It would be quite nice to have all mime types as a typescript literal type as well. See changelog.

dougwilson commented 2 years ago

Thank you for this, but it doesn't look like this is definitions for how to use this module, but rather definitions for a generic type derived from this module. I would suggest publishing this as it's own module for the usage you are trying to use it for.

JustusFluegel commented 2 years ago

kk, will do

JustusFluegel commented 2 years ago

If it's welcome I'll add definitions for the usage of the Module tomorrow, as it's 1:20 in Germany and I am going to sleep for now.