1 | # Installation
|
2 | > `npm install --save @types/mime-types`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for mime-types (https://github.com/jshttp/mime-types#readme).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime-types.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime-types/index.d.ts)
|
10 | ````ts
|
11 | export function lookup(filenameOrExt: string): string | false;
|
12 | export function contentType(filenameOrExt: string): string | false;
|
13 | export function extension(typeString: string): string | false;
|
14 | export function charset(typeString: string): string | false;
|
15 | export namespace charsets {
|
16 | const lookup: typeof charset;
|
17 | }
|
18 | export const types: { [key: string]: string };
|
19 | export const extensions: { [key: string]: string[] };
|
20 |
|
21 | ````
|
22 |
|
23 | ### Additional Details
|
24 | * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
|
25 | * Dependencies: none
|
26 |
|
27 | # Credits
|
28 | These definitions were written by [Gyusun Yeom](https://github.com/Perlmint).
|
29 |
|
\ | No newline at end of file |