Open st-clair-clarke opened 3 years ago
Yes please, i would like this as well. This would then be more usable in angular 13 +
declare module 'country-flags-svg' {
const countries: CountryData[];
const flagUrls: Record<string, string>;
function findFlagUrlByCountryName(countryName: string): string;
function findFlagUrlByNationality(nationality: string): string;
function findFlagUrlByIso2Code(iso2Code: string): string;
function findFlagUrlByIso3Code(iso3Code: string): string;
interface CountryData {
name: string;
demonym: string;
flag: string;
iso2: string;
iso3: string;
altSpellings: string[];
}
}
Hi, Is it possible to have Typescript definition files for country-flags-svg please.
Thanks