rittenhop-dev/versions/5.94.2/node_modules/@tryghost/collections/build/events/PostEditedEvent.js
2024-09-23 19:40:12 -04:00

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