Tools/domain/events/ApplicationUpdateStarted.ts

17 lines
399 B
TypeScript
Raw Normal View History

2024-03-10 09:49:36 +00:00
import DomainEvent from "../DomainEvent";
type ApplicationUpdateStartedPayload = {
id: string;
newVersion: string;
};
export class ApplicationUpdateStarted
implements DomainEvent<ApplicationUpdateStartedPayload>
{
readonly type = "ApplicationUpdateStarted" as const;
constructor(
public readonly payload: ApplicationUpdateStartedPayload,
public readonly createdAt: Date
) {}
}