@types/content-type
Advanced tools
Comparing version 1.0.33 to 1.1.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for content-type v1.0.1 | ||
// Type definitions for content-type 1.1 | ||
// Project: https://www.npmjs.com/package/content-type | ||
@@ -6,2 +6,4 @@ // Definitions by: Hiroki Horiuchi <https://github.com/horiuchi> | ||
import * as express from 'express'; | ||
declare var ct: ct.StaticFunctions; | ||
@@ -12,5 +14,3 @@ export = ct; | ||
interface StaticFunctions { | ||
parse(string: string): MediaType; | ||
parse(req: { headers: any; }): MediaType; | ||
parse(res: { getHeader(key: string): string; }): MediaType; | ||
parse(input: express.Request | express.Response | string): MediaType; | ||
format(obj: MediaType): string; | ||
@@ -17,0 +17,0 @@ } |
{ | ||
"name": "@types/content-type", | ||
"version": "1.0.33", | ||
"description": "TypeScript definitions for content-type v1.0.1", | ||
"version": "1.1.0", | ||
"description": "TypeScript definitions for content-type", | ||
"license": "MIT", | ||
"author": "Hiroki Horiuchi <https://github.com/horiuchi>", | ||
"contributors": [ | ||
{ | ||
"name": "Hiroki Horiuchi", | ||
"url": "https://github.com/horiuchi" | ||
} | ||
], | ||
"main": "", | ||
@@ -13,6 +18,8 @@ "repository": { | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"@types/express": "*" | ||
}, | ||
"peerDependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "3f37bffdab54a261b348c146a965b1f628ea5aae499ea42c79408f4eb2592ee7" | ||
"typesPublisherContentHash": "d38a492f03c7b0e3c8340a4fc992032dd04c46676f4e9f7db402bbe8c7be0dae", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -5,15 +5,13 @@ # Installation | ||
# Summary | ||
This package contains type definitions for content-type v1.0.1 (https://www.npmjs.com/package/content-type). | ||
This package contains type definitions for content-type (https://www.npmjs.com/package/content-type). | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/content-type | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/content-type | ||
Additional Details | ||
* Last updated: Thu, 27 Oct 2016 07:21:34 GMT | ||
* File structure: ProperModule | ||
* Library Dependencies: none | ||
* Module Dependencies: none | ||
* Global values: ct | ||
* Last updated: Fri, 23 Jun 2017 14:03:03 GMT | ||
* Dependencies: express | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Hiroki Horiuchi <https://github.com/horiuchi>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2957
1
17
17
+ Added@types/express@*
+ Added@types/body-parser@1.19.5(transitive)
+ Added@types/connect@3.4.38(transitive)
+ Added@types/express@5.0.0(transitive)
+ Added@types/express-serve-static-core@5.0.3(transitive)
+ Added@types/http-errors@2.0.4(transitive)
+ Added@types/mime@1.3.5(transitive)
+ Added@types/node@22.10.5(transitive)
+ Added@types/qs@6.9.17(transitive)
+ Added@types/range-parser@1.2.7(transitive)
+ Added@types/send@0.17.4(transitive)
+ Added@types/serve-static@1.15.7(transitive)
+ Addedundici-types@6.20.0(transitive)