Skip to main content

Reaction

@rotorsoft/act-root


@rotorsoft/act-root / act/src / Reaction

Type Alias: Reaction<E, K>

Reaction<E, K> = object

Defined in: libs/act/src/types/reaction.ts:50

Defines a reaction to an event, including handler, resolver, and options.

Type Parameters

E

E extends Schemas

Event schemas.

K

K extends keyof E = keyof E

Event name.

Properties

handler

readonly handler: ReactionHandler<E, K>

Defined in: libs/act/src/types/reaction.ts:51


options

readonly options: ReactionOptions

Defined in: libs/act/src/types/reaction.ts:53


resolver

readonly resolver: ReactionResolver<E, K>

Defined in: libs/act/src/types/reaction.ts:52