Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InvokeDefinition<TContext, TEvent>

Type Parameters

Hierarchy

Index

Properties

autoForward?: boolean

If true, events sent to the parent service will be forwarded to the invoked service.

Default: false

data?: Mapper<TContext, TEvent, any> | PropertyMapper<TContext, TEvent, any>

Data from the parent machine's context to set as the (partial or full) context for the invoked child machine.

Data should be mapped to match the child machine's context shape.

exec?: ActionFunction<TContext, TEvent>

The implementation for executing the action.

forward?: boolean
deprecated

Use autoForward property instead of forward. Support for forward will get removed in the future.

id: string

The source of the machine to be invoked, or the machine itself.

type: string

The type of action that is executed.

Generated using TypeDoc