@yantrix/redux v0.6.0 • Docs
Yantrix API / @yantrix/redux / TCreateFSMSliceOptions
Type Alias: TCreateFSMSliceOptions<Automata, StateType, ContextType> ​
ts
type TCreateFSMSliceOptions<Automata, StateType, ContextType>: object;Type Parameters ​
• Automata extends TAutomata
• StateType
• ContextType = TProjectionInput<ReturnType<Automata["getContext"]>["context"]>
Type declaration ​
contextToRedux()? ​
ts
optional contextToRedux: (context) => StateType;Parameters ​
• context: ContextType
Returns ​
StateType
Fsm ​
ts
Fsm: TClassConstructor<Automata>;name? ​
ts
optional name: string;reducerPath? ​
ts
optional reducerPath: string;selectors? ​
ts
optional selectors: SliceSelectors<TAutomataContext<StateType>>;