Tools/domain/events/ApplicationUpdateStarted.ts
2024-03-10 10:49:36 +01:00

17 lines
399 B
TypeScript

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
) {}
}