20 lines
629 B
JavaScript
20 lines
629 B
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
exports.PostEditedEvent = void 0;
|
||
|
class PostEditedEvent {
|
||
|
id;
|
||
|
data;
|
||
|
timestamp;
|
||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||
|
constructor(data, timestamp) {
|
||
|
this.id = data.id;
|
||
|
this.data = data;
|
||
|
this.timestamp = timestamp;
|
||
|
}
|
||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||
|
static create(data, timestamp = new Date()) {
|
||
|
return new PostEditedEvent(data, timestamp);
|
||
|
}
|
||
|
}
|
||
|
exports.PostEditedEvent = PostEditedEvent;
|
||
|
//# sourceMappingURL=PostEditedEvent.js.map
|