JSPM

@types/mime-types

2.1.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2933676
  • Score
    100M100P100Q211212F
  • License MIT

TypeScript definitions for mime-types

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/mime-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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

    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: Tue, 07 Nov 2023 09:09:39 GMT
    • Dependencies: none

    Credits

    These definitions were written by Gyusun Yeom.