@types/accepts
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -15,3 +15,6 @@ // Type definitions for accepts 1.3 | ||
* Return the first accepted charset. If nothing in `charsets` is accepted, then `false` is returned. | ||
* If no charsets are supplied, all accepted charsets are returned, in the order of the client's preference | ||
* (most preferred first). | ||
*/ | ||
charset(): string[]; | ||
charset(charsets: string[]): string | false; | ||
@@ -21,9 +24,16 @@ charset(...charsets: string[]): string | false; | ||
/** | ||
* Return the charsets that the request accepts, in the order of the client's preference (most preferred first). | ||
* Return the first accepted charset. If nothing in `charsets` is accepted, then `false` is returned. | ||
* If no charsets are supplied, all accepted charsets are returned, in the order of the client's preference | ||
* (most preferred first). | ||
*/ | ||
charsets(): string[]; | ||
charsets(charsets: string[]): string | false; | ||
charsets(...charsets: string[]): string | false; | ||
/** | ||
* Return the first accepted encoding. If nothing in `encodings` is accepted, then `false` is returned. | ||
* If no encodings are supplied, all accepted encodings are returned, in the order of the client's preference | ||
* (most preferred first). | ||
*/ | ||
encoding(): string[]; | ||
encoding(encodings: string[]): string | false; | ||
@@ -33,9 +43,16 @@ encoding(...encodings: string[]): string | false; | ||
/** | ||
* Return the encodings that the request accepts, in the order of the client's preference (most preferred first). | ||
* Return the first accepted encoding. If nothing in `encodings` is accepted, then `false` is returned. | ||
* If no encodings are supplied, all accepted encodings are returned, in the order of the client's preference | ||
* (most preferred first). | ||
*/ | ||
encodings(): string[]; | ||
encodings(encodings: string[]): string | false; | ||
encodings(...encodings: string[]): string | false; | ||
/** | ||
* Return the first accepted language. If nothing in `languages` is accepted, then `false` is returned. | ||
* If no languaes are supplied, all accepted languages are returned, in the order of the client's preference | ||
* (most preferred first). | ||
*/ | ||
language(): string[]; | ||
language(languages: string[]): string | false; | ||
@@ -45,7 +62,29 @@ language(...languages: string[]): string | false; | ||
/** | ||
* Return the languages that the request accepts, in the order of the client's preference (most preferred first). | ||
* Return the first accepted language. If nothing in `languages` is accepted, then `false` is returned. | ||
* If no languaes are supplied, all accepted languages are returned, in the order of the client's preference | ||
* (most preferred first). | ||
*/ | ||
languages(): string[]; | ||
languages(languages: string[]): string | false; | ||
languages(...languages: string[]): string | false; | ||
/** | ||
* Return the first accepted language. If nothing in `languages` is accepted, then `false` is returned. | ||
* If no languaes are supplied, all accepted languages are returned, in the order of the client's preference | ||
* (most preferred first). | ||
*/ | ||
lang(): string[]; | ||
lang(languages: string[]): string | false; | ||
lang(...languages: string[]): string | false; | ||
/** | ||
* Return the first accepted language. If nothing in `languages` is accepted, then `false` is returned. | ||
* If no languaes are supplied, all accepted languages are returned, in the order of the client's preference | ||
* (most preferred first). | ||
*/ | ||
langs(): string[]; | ||
langs(languages: string[]): string | false; | ||
langs(...languages: string[]): string | false; | ||
/** | ||
* 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. | ||
@@ -52,0 +91,0 @@ * If no types are supplied, return the entire set of acceptable types. |
{ | ||
"name": "@types/accepts", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "TypeScript definitions for accepts", | ||
@@ -27,4 +27,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "b13809e566087a6f2bc06159e4e8fe38020e2f10f972436c37d92de8e42c8697", | ||
"typesPublisherContentHash": "0c1b369f923466e74bec6da148c76a05cc138923a142ea737eff8cf2b29b559f", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 13 Dec 2017 22:05:56 GMT | ||
* Last updated: Tue, 13 Feb 2018 02:54:18 GMT | ||
* Dependencies: http, node | ||
@@ -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
7118
87