broofa / mime

Mime types for JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mime.getType is undefine in typescript

TanDat97 opened this issue · comments

I just use mime for typescript project, and there is no interface for function mime.getType()
should it be defined in interface TypeMap?
Can I use mime.extension() also?

Works for me. Make sure you've installed @types/mime.

CleanShot 2023-03-17 at 05 54 41@2x

Edit: If you want to provide a "minimal, complete, and verifiable" recipe for reproducing the problem, I'll be happy to reopen.