Skip to content

Commit

Permalink
feat: Add ITagCollection and TagCollection classes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jun 10, 2023
1 parent 990f3fb commit a283443
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions assets/js/tagCollection.dto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export interface ITagCollection {
name: string
tags: string[]
}

// For default values
export class TagCollectionDTO implements ITagCollection {
name: string = ''
tags: string[] = []
}

export default class TagCollection extends TagCollectionDTO {
constructor(dto: TagCollectionDTO) {
super()
Object.assign(this, dto)
}
}

0 comments on commit a283443

Please sign in to comment.