Type alias PropagatedEvent<SourceTopic, TargetTopic, Event>
PropagatedEvent<SourceTopic, TargetTopic, Event>: Event extends infer E extends { type: string; } ? Omit<E, "type" | "topic"> & { topic: TargetTopic; type: PropagatedEventType<SourceTopic, E["type"]>; } : never
Type Parameters
-
SourceTopic extends string
-
TargetTopic extends string
-
Event extends {
type: string;
}
Modifies an event shape to reflect propagation to a parent topic.