UNPKG

714 BTypeScriptView Raw
1
2declare module 'accept-language' {
3
4 interface AcceptLanguage {
5
6 /**
7 * Define your supported languages. The first language will be your default language.
8 */
9 languages(languages: string[]): void;
10
11 /**
12 * Get matched language. If no match, the default language will be returned.
13 */
14 get(priorityList: string | null | undefined): string | null;
15 }
16
17 interface AcceptLanguageModule extends AcceptLanguage {
18
19 /**
20 * Create instance of parser
21 */
22 create(): AcceptLanguage;
23 }
24
25 const __$export: AcceptLanguageModule & { default: AcceptLanguageModule };
26 export = __$export;
27}