fix : assign event type in class

This commit is contained in:
2024-12-29 12:14:08 +01:00
parent 03d4a1ba26
commit f9623a7961
2 changed files with 17 additions and 15 deletions
+10 -10
View File
@@ -1,26 +1,26 @@
import { WordResponseDTO } from './dto/wordresponse.dto';
export class WordCreateEvent {
type: 'create';
constructor(public word: WordResponseDTO) {}
type = 'create';
constructor(public word: WordResponseDTO) { }
}
export class WordEditEvent {
type: 'edit';
constructor(public word: WordResponseDTO) {}
type = 'edit';
constructor(public word: WordResponseDTO) { }
}
export class WordDeleteEvent {
type: 'delete';
constructor(public id: number) {}
type = 'delete';
constructor(public id: number) { }
}
export class WordEnableEvent {
type: 'enable';
constructor(public id: number) {}
type = 'enable';
constructor(public id: number) { }
}
export class WordDisableEvent {
type: 'disable';
constructor(public id: number) {}
type = 'disable';
constructor(public id: number) { }
}