iptv/scripts/models/issue.ts

20 lines
332 B
TypeScript
Raw Normal View History

2023-09-22 04:17:22 +02:00
import { Dictionary } from '@freearhey/core'
2023-09-17 03:08:50 +02:00
type IssueProps = {
number: number
2023-09-18 17:24:40 +02:00
labels: string[]
2023-09-17 03:08:50 +02:00
data: Dictionary
}
export class Issue {
number: number
2023-09-18 17:24:40 +02:00
labels: string[]
2023-09-17 03:08:50 +02:00
data: Dictionary
2023-09-18 17:24:40 +02:00
constructor({ number, labels, data }: IssueProps) {
2023-09-17 03:08:50 +02:00
this.number = number
2023-09-18 17:24:40 +02:00
this.labels = labels
2023-09-17 03:08:50 +02:00
this.data = data
}
}