@types/type-is
Advanced tools
Comparing version 1.6.3 to 1.6.4
@@ -8,3 +8,3 @@ // Type definitions for type-is 1.6 | ||
/// <reference types="node" /> | ||
import { IncomingMessage } from 'http'; | ||
import { IncomingMessage } from "http"; | ||
@@ -11,0 +11,0 @@ export = typeIs; |
{ | ||
"name": "@types/type-is", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "TypeScript definitions for type-is", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/type-is", | ||
"license": "MIT", | ||
@@ -14,3 +15,3 @@ "contributors": [ | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -25,4 +26,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "560845c36acff23e2275aac28448aa5020f4f1073b9d251f46edc1ee43a4c576", | ||
"typeScriptVersion": "2.3" | ||
"typesPublisherContentHash": "68bbb54867d82f01ae6593e4f819af5af275a5905524bbe1086fc46f3d1ccc32", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -8,10 +8,35 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/type-is | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/type-is. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/type-is/index.d.ts) | ||
````ts | ||
// Type definitions for type-is 1.6 | ||
// Project: https://github.com/jshttp/type-is#readme | ||
// Definitions by: BendingBender <https://github.com/BendingBender> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
Additional Details | ||
* Last updated: Mon, 19 Aug 2019 00:51:19 GMT | ||
* Dependencies: @types/node | ||
/// <reference types="node" /> | ||
import { IncomingMessage } from "http"; | ||
export = typeIs; | ||
declare function typeIs(request: IncomingMessage, types: string[]): string | false | null; | ||
declare function typeIs(request: IncomingMessage, ...types: string[]): string | false | null; | ||
declare namespace typeIs { | ||
function normalize(type: string): string | false; | ||
function hasBody(request: IncomingMessage): boolean; | ||
function is(mediaType: string, types: string[]): string | false; | ||
function is(mediaType: string, ...types: string[]): string | false; | ||
function mimeMatch(expected: false | string, actual: string): boolean; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Tue, 12 Sep 2023 12:34:57 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by BendingBender <https://github.com/BendingBender>. | ||
These definitions were written by [BendingBender](https://github.com/BendingBender). |
Sorry, the diff of this file is not supported yet
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4409
0
42