X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fmime-helper.js;h=cbc8d0df83b928f3bcb19f7a529b2b8f60db1cb3;hb=refs%2Fheads%2Fv2.1-dev;hp=687d27b7c33bf9baca52c9e47df45313dc7cb542;hpb=031c170bdaf1d9c331e6f6fc701ce6540c0e6941;p=squeep-api-dingus diff --git a/lib/mime-helper.js b/lib/mime-helper.js index 687d27b..cbc8d0d 100644 --- a/lib/mime-helper.js +++ b/lib/mime-helper.js @@ -28,7 +28,7 @@ for (const [mimeType, entry] of Object.entries(mimeDb)) { * Return a suitable type for a file extension. * @param {string} ext file extension * @param {string} def type to return if no match - * @returns {string} + * @returns {string} mime-type */ const extensionToMime = (ext, def = defaultType) => extension?.[ext]?.[0] || def;