CoastalCommitsPastes/server/node_modules/accept-language/Library/Typings.d.ts
2022-03-06 16:46:59 -08:00

27 lines
687 B
TypeScript

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;
}