typescript declare "userLanguage" code example
Example: typescript declare "userLanguage"
interface Navigator {
userLanguage?: string;
browserLanguage?: string;
languages: readonly string[];
language: string;
}
const navigator: Navigator = window.navigator;