@types/content-type
Type definitions for content-type v0.0.1 from https://www.github.com/DefinitelyTyped/DefinitelyTyped
Last updated 10 years ago by types .
MIT · Original npm · Tarball · package.json
$ cnpm install @types/content-type 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/content-type

Summary

This package contains type definitions for content-type (https://github.com/jshttp/content-type).

Details

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

index.d.ts

// Type definitions for content-type 1.1
// Project: https://github.com/jshttp/content-type
// Definitions by: Hiroki Horiuchi <https://github.com/horiuchi>
//                 BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export function parse(input: RequestLike | ResponseLike | string): ParsedMediaType;
export function format(obj: MediaType): string;

export interface ParsedMediaType {
    type: string;
    parameters: {[key: string]: string};
}

export interface MediaType {
    type: string;
    parameters?: {[key: string]: string} | undefined;
}

export interface RequestLike {
    headers: {[header: string]: string | string[] | undefined};
}

export interface ResponseLike {
    getHeader(name: string): number | string | string[] | undefined;
}

Additional Details

  • Last updated: Fri, 09 Jul 2021 02:32:23 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Hiroki Horiuchi, and BendingBender.

Current Tags

  • 1.1.5                                ...           latest (5 years ago)
  • 1.1.3                                ...           ts2.0 (7 years ago)
  • 1.1.3                                ...           ts2.1 (7 years ago)
  • 1.1.3                                ...           ts2.2 (7 years ago)
  • 1.1.3                                ...           ts2.3 (7 years ago)
  • 1.1.3                                ...           ts2.4 (7 years ago)
  • 1.1.3                                ...           ts2.5 (7 years ago)
  • 1.1.3                                ...           ts2.6 (7 years ago)
  • 1.1.3                                ...           ts2.7 (7 years ago)
  • 1.1.3                                ...           ts2.8 (7 years ago)
  • 1.1.3                                ...           ts2.9 (7 years ago)
  • 1.1.3                                ...           ts3.0 (7 years ago)
  • 1.1.3                                ...           ts3.1 (7 years ago)
  • 1.1.3                                ...           ts3.2 (7 years ago)
  • 1.1.3                                ...           ts3.3 (7 years ago)
  • 1.1.3                                ...           ts3.4 (7 years ago)
  • 1.1.3                                ...           ts3.5 (7 years ago)
  • 1.1.5                                ...           ts3.6 (5 years ago)
  • 1.1.5                                ...           ts3.7 (5 years ago)
  • 1.1.5                                ...           ts3.8 (5 years ago)
  • 1.1.5                                ...           ts3.9 (5 years ago)
  • 1.1.5                                ...           ts4.0 (5 years ago)
  • 1.1.5                                ...           ts4.1 (5 years ago)
  • 1.1.5                                ...           ts4.2 (5 years ago)
  • 1.1.5                                ...           ts4.3 (5 years ago)
  • 1.1.5                                ...           ts4.4 (5 years ago)
  • 1.1.5                                ...           ts4.5 (5 years ago)
  • 1.1.5                                ...           ts4.6 (5 years ago)

21 Versions

  • 1.1.5                                ...           5 years ago
  • 1.1.4                                ...           5 years ago
  • 1.1.3                                ...           7 years ago
  • 1.1.2                                ...           8 years ago
  • 1.1.1                                ...           9 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.33                                ...           9 years ago
  • 1.0.32                                ...           10 years ago
  • 1.0.31                                ...           10 years ago
  • 1.0.30                                ...           10 years ago
  • 1.0.29                                ...           10 years ago
  • 0.0.28                                ...           10 years ago
  • 0.0.27-alpha                                ...           10 years ago
  • 0.0.26-alpha                                ...           10 years ago
  • 0.0.25-alpha                                ...           10 years ago
  • 0.0.24-alpha                                ...           10 years ago
  • 0.0.23-alpha                                ...           10 years ago
  • 0.0.22-alpha                                ...           10 years ago
  • 0.0.21-alpha                                ...           10 years ago
  • 0.0.16-alpha                                ...           10 years ago
  • 0.0.15-alpha                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |