UNPKG

@signatu/common-lib

Version:

Common Javascript/Typescript library for Signatu

37 lines (36 loc) 1.13 kB
import { Language } from './language'; export interface CountrySpec { name: string; 'alpha-2': string; /** Synonym for alpha-2 */ isoCountry?: string; 'alpha-3': string; 'country-code': string; 'iso_3166-2': string; region: string | null; 'region-code': string | null; 'sub-region': string | null; 'sub-region-code': string | null; } export declare class Country { static readonly supportedCountries: CountrySpec[]; static readonly allCountries: any[]; countries: Country[]; protected country: any; protected setCountry(countryCode: string): void; constructor(countryCode?: string); readonly inEU: boolean; readonly inEEA: boolean; readonly inEUorEEA: boolean; readonly name: string; localName(language: Language): string; readonly alpha2: string; readonly isoCountry: string; readonly alpha3: string; readonly region: string; localRegion(language: Language): string; readonly subRegion: string; toJSON(): string; static fromJSON(json: string): Country; static reviver(key: string, value: any): any; }