Tools/domain/events/ApplicationUpdateStarted.ts

15 lines
356 B
TypeScript
Raw Normal View History

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