15 lines
196 B
TypeScript
15 lines
196 B
TypeScript
type CategoryProps = {
|
|
id: string
|
|
name: string
|
|
}
|
|
|
|
export class Category {
|
|
id: string
|
|
name: string
|
|
|
|
constructor({ id, name }: CategoryProps) {
|
|
this.id = id
|
|
this.name = name
|
|
}
|
|
}
|