mirror of
https://github.com/iptv-org/iptv
synced 2025-12-22 21:37:23 -05:00
Update scripts
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
type CategoryData = {
|
||||
id: string
|
||||
name: string
|
||||
}
|
||||
import type { CategoryData, CategorySerializedData } from '../types/category'
|
||||
|
||||
export class Category {
|
||||
id: string
|
||||
@@ -11,4 +8,11 @@ export class Category {
|
||||
this.id = data.id
|
||||
this.name = data.name
|
||||
}
|
||||
|
||||
serialize(): CategorySerializedData {
|
||||
return {
|
||||
id: this.id,
|
||||
name: this.name
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user