Update scripts

This commit is contained in:
freearhey 2025-04-16 20:54:55 +03:00
parent d095023da0
commit df365451a9
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
}
}
}