@fesjs/fes-design
Version:
fes-design for PC
7 lines (6 loc) • 300 B
TypeScript
/**
* This is a rather simple version. I may fix it later to make it more accurate.
* I've looked at https://github.com/broofa/mime, however it doesn't has a esm
* version, so I can't simply use it.
*/
export declare function matchType(name: string, mimeType: string, accept: string[]): boolean;