mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 08:30:06 -04:00
Update site.ts
This commit is contained in:
parent
81f2665235
commit
7e07f40809
1 changed files with 7 additions and 1 deletions
|
@ -14,15 +14,21 @@ type Status = {
|
||||||
|
|
||||||
type SiteProps = {
|
type SiteProps = {
|
||||||
domain: string
|
domain: string
|
||||||
|
totalChannels?: number
|
||||||
|
markedChannels?: number
|
||||||
issues: Collection
|
issues: Collection
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Site {
|
export class Site {
|
||||||
domain: string
|
domain: string
|
||||||
|
totalChannels: number
|
||||||
|
markedChannels: number
|
||||||
issues: Collection
|
issues: Collection
|
||||||
|
|
||||||
constructor({ domain, issues }: SiteProps) {
|
constructor({ domain, totalChannels = 0, markedChannels = 0, issues }: SiteProps) {
|
||||||
this.domain = domain
|
this.domain = domain
|
||||||
|
this.totalChannels = totalChannels
|
||||||
|
this.markedChannels = markedChannels
|
||||||
this.issues = issues
|
this.issues = issues
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue