chore : eslint

This commit is contained in:
2025-01-13 22:33:38 +01:00
parent a99853f417
commit 24c39d23d6
5 changed files with 57 additions and 51 deletions
+12 -11
View File
@@ -1,30 +1,31 @@
import { WordResponseDTO } from './dto/wordresponse.dto';
import { WordResponseDTO } from "./dto/wordresponse.dto";
import type { ConceptEvent } from "./events";
export class WordCreateEvent {
type = 'create';
export class WordCreateEvent implements ConceptEvent {
type = "create";
constructor(public word: WordResponseDTO) {
this.word = new WordResponseDTO(word);
}
}
export class WordEditEvent {
type = 'edit';
export class WordEditEvent implements ConceptEvent {
type = "edit";
constructor(public word: WordResponseDTO) {
this.word = new WordResponseDTO(word);
}
}
export class WordDeleteEvent {
type = 'delete';
export class WordDeleteEvent implements ConceptEvent {
type = "delete";
constructor(public id: number) {}
}
export class WordEnableEvent {
type = 'enable';
export class WordEnableEvent implements ConceptEvent {
type = "enable";
constructor(public id: number) {}
}
export class WordDisableEvent {
type = 'disable';
export class WordDisableEvent implements ConceptEvent {
type = "disable";
constructor(public id: number) {}
}