You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iptv/scripts/models/country.ts

21 lines
346 B
TypeScript

type CountryProps = {
code: string
name: string
languages: string[]
flag: string
}
export class Country {
code: string
name: string
languages: string[]
flag: string
constructor({ code, name, languages, flag }: CountryProps) {
this.code = code
this.name = name
this.languages = languages
this.flag = flag
}
}