Update scripts

This commit is contained in:
freearhey
2025-04-16 20:54:55 +03:00
parent d39af32f18
commit d42b102cdf
39 changed files with 1256 additions and 508 deletions

View File

@@ -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
}
}
}