CoastalCommitsPastes/server/node_modules/accept-language/Library/Typings.d.ts

28 lines
687 B
TypeScript
Raw Normal View History

2022-03-06 19:46:59 -05:00
declare module 'accept-language' {
interface AcceptLanguage {
/**
* Define your supported languages. The first language will be your default language.
*/
languages(languages: string[]): void;
/**
* Get matched language. If no match, the default language will be returned.
*/
get(priorityList: string | null | undefined): string | null;
}
interface AcceptLanguageModule extends AcceptLanguage {
/**
* Create instance of parser
*/
create(): AcceptLanguage;
}
const __$export: AcceptLanguageModule & { default: AcceptLanguageModule };
export = __$export;
}