@types/accepts
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -47,12 +47,10 @@ // Type definitions for accepts 1.3 | ||
* Return the first accepted type (and it is returned as the same text as what appears in the `types` array). If nothing in `types` is accepted, then `false` is returned. | ||
* If no types are supplied, return the entire set of acceptable types. | ||
* | ||
* The `types` array can contain full MIME types or file extensions. Any value that is not a full MIME types is passed to `require('mime-types').lookup`. | ||
*/ | ||
type(types: string[]): string | false; | ||
type(...types: string[]): string | false; | ||
/** | ||
* Return the types that the request accepts, in the order of the client's preference (most preferred first). | ||
*/ | ||
types(): string[]; | ||
type(types: string[]): string[] | string | false; | ||
type(...types: string[]): string[] | string | false; | ||
types(types: string[]): string[] | string | false; | ||
types(...types: string[]): string[] | string | false; | ||
} | ||
@@ -59,0 +57,0 @@ } |
{ | ||
"name": "@types/accepts", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "TypeScript definitions for accepts", | ||
@@ -9,3 +9,4 @@ "license": "MIT", | ||
"name": "Stefan Reichel", | ||
"url": "https://github.com/bomret" | ||
"url": "https://github.com/bomret", | ||
"githubUsername": "bomret" | ||
} | ||
@@ -20,5 +21,4 @@ ], | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "b7ab2e8ce71713dad8d66f7a2fae90c6fd87b3fc89f34283a6b3436ab97a4583", | ||
"typesPublisherContentHash": "47f2bd002da383f21b8a5272ef0473e95325833bfe04790f27561d3f19ea2fe1", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/accepts | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/accepts | ||
Additional Details | ||
* Last updated: Tue, 21 Mar 2017 20:18:42 GMT | ||
* Last updated: Mon, 18 Sep 2017 14:08:00 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
4771
4
50