@types/accept-language-parser
Advanced tools
Comparing version 1.5.0 to 1.5.1
// Type definitions for accept-language-parser 1.5 | ||
// Project: https://github.com/opentable/accept-language-parser | ||
// Definitions by: Niklas Wulf <https://github.com/kampfgnom> | ||
// Wooram Jun <https://github.com/chatoo2412> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
// https://github.com/opentable/accept-language-parser/blob/v1.4.1/index.js | ||
// https://github.com/opentable/accept-language-parser/blob/v1.5.0/index.js | ||
export function parse(acceptLanguage: string): Language[]; | ||
export function pick( | ||
supportedLanguages: string[], | ||
export function pick<T extends string>( | ||
supportedLanguages: T[], | ||
acceptLanguage: string | Language[], | ||
options?: PickOptions | ||
): string | null; | ||
): T | null; | ||
@@ -16,0 +17,0 @@ export interface Language { |
{ | ||
"name": "@types/accept-language-parser", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "TypeScript definitions for accept-language-parser", | ||
@@ -11,13 +11,19 @@ "license": "MIT", | ||
"githubUsername": "kampfgnom" | ||
}, | ||
{ | ||
"name": "Wooram Jun", | ||
"url": "https://github.com/chatoo2412", | ||
"githubUsername": "chatoo2412" | ||
} | ||
], | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "628b691d7ac80b0ece02ee20a88b4409b0d76b4689b25f174b5cccea5817bc14", | ||
"typesPublisherContentHash": "bece7d72b0d1cf9e44383e38092a5b880a2b54f2ca96779a4a7f79148febbb5d", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/accept-language-parser | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/accept-language-parser | ||
Additional Details | ||
* Last updated: Wed, 25 Apr 2018 18:59:22 GMT | ||
* Last updated: Thu, 24 Jan 2019 16:50:03 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Niklas Wulf <https://github.com/kampfgnom>. | ||
These definitions were written by Niklas Wulf <https://github.com/kampfgnom>, Wooram Jun <https://github.com/chatoo2412>. |
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
3393
22