in src/history/TaskCompletedEvent.ts [10:23]
constructor(options: HistoryEventOptions) {
super(HistoryEventType.TaskCompleted, options.eventId, options.isPlayed, options.timestamp);
if (options.taskScheduledId === undefined) {
throw new Error("TaskCompletedEvent needs a task scheduled id provided.");
}
if (options.result === undefined) {
throw new Error("TaskCompletedEvent needs a result provided.");
}
this.TaskScheduledId = options.taskScheduledId;
this.Result = options.result;
}