mirror of
https://github.com/iptv-org/iptv
synced 2026-11-04 08:14:28 -05:00
Update scripts
This commit is contained in:
1 parent
d39af32f18
commit
d42b102cdf
39 files changed
+1256
-508
No files matched your search
@@ -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