Skip to content

@yantrix/automata v0.6.0 • Docs


Yantrix API / @yantrix/automata / TEffectMatrixEntry

Type Alias: TEffectMatrixEntry()<ModelType, EventType, EventMetaType> ​

ts
type TEffectMatrixEntry<ModelType, EventType, EventMetaType>: (...args) => ModelType | TReadonlyModel<ModelType>;

An Effect Matrix accepts an Effect or a pure projection returning a read-only snapshot.

Type Parameters ​

• ModelType extends object

• EventType extends TAutomataBaseEventType

• EventMetaType extends { [K in EventType]: any }

Parameters ​

• ...args: Parameters<TAutomataEffect<ModelType, EventType, EventMetaType>>

Returns ​

ModelType | TReadonlyModel<ModelType>