Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/content-type

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/content-type - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

2

content-type/index.d.ts

@@ -17,3 +17,3 @@ // Type definitions for content-type 1.1

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

@@ -20,0 +20,0 @@

{
"name": "@types/content-type",
"version": "1.1.3",
"version": "1.1.4",
"description": "TypeScript definitions for content-type",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/content-type",
"license": "MIT",

@@ -19,11 +20,12 @@ "contributors": [

"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/content-type"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "13938f211534ed860996674f0c8201c0fa2f7f8bf08bbe459c1eb33981ec17a8",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "f44bc60e5b1f378102301c115f4fe47da315d8f0b88d7c2b717f3e42ba449762",
"typeScriptVersion": "3.6"
}

@@ -5,9 +5,39 @@ # Installation

# Summary
This package contains type definitions for content-type ( https://github.com/jshttp/content-type ).
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
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/content-type.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/content-type/index.d.ts)
````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/borisyankov/DefinitelyTyped
Additional Details
* Last updated: Wed, 13 Feb 2019 16:16:49 GMT
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: Tue, 06 Jul 2021 20:32:29 GMT
* Dependencies: none

@@ -17,2 +47,2 @@ * Global values: none

# Credits
These definitions were written by Hiroki Horiuchi <https://github.com/horiuchi>, BendingBender <https://github.com/BendingBender>.
These definitions were written by [Hiroki Horiuchi](https://github.com/horiuchi), and [BendingBender](https://github.com/BendingBender).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc