2.1.4 • Published 2 years ago

@types/mime-types v2.1.4

Weekly downloads
659,958
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/mime-types

Summary

This package contains type definitions for mime-types (https://github.com/jshttp/mime-types#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime-types.

index.d.ts

// Type definitions for mime-types 2.1
// Project: https://github.com/jshttp/mime-types#readme
// Definitions by: Gyusun Yeom <https://github.com/Perlmint>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export function lookup(filenameOrExt: string): string | false;
export function contentType(filenameOrExt: string): string | false;
export function extension(typeString: string): string | false;
export function charset(typeString: string): string | false;
export namespace charsets {
    const lookup: typeof charset;
}
export const types: {[key: string]: string};
export const extensions: {[key: string]: string[]};

Additional Details

  • Last updated: Mon, 16 Aug 2021 19:31:26 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Gyusun Yeom.

2.1.2

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.1

4 years ago

2.1.0

9 years ago