Update scripts

This commit is contained in:
freearhey
2023-09-15 18:40:35 +03:00
parent 1decbe7ac0
commit 94f473f7ca
98 changed files with 2423 additions and 1499 deletions

19
scripts/models/region.ts Normal file
View File

@@ -0,0 +1,19 @@
import { Collection } from '../core'
type RegionProps = {
code: string
name: string
countries: string[]
}
export class Region {
code: string
name: string
countries: Collection
constructor({ code, name, countries }: RegionProps) {
this.code = code
this.name = name
this.countries = new Collection(countries)
}
}