ReactionResolver
@rotorsoft/act-root / act/src / ReactionResolver
Type Alias: ReactionResolver<E, K>
ReactionResolver<
E,K> = {source?:string;target:string; } | (event) => {source?:string;target:string; } |undefined
Defined in: libs/act/src/types/reaction.ts:29
Resolves the stream for a reaction, either by mapping the event or statically.
Type Parameters
E
E extends Schemas
Event schemas.
K
K extends keyof E
Event name.
Param
The committed event.
Returns
The target stream name and optionally the source stream (for fetch optimization).