Typealiases
The following typealiases are available globally.
-
Store state is stored as a Dictionary of [StateKey: Any]
Declaration
Swift
public typealias StateKey = String
-
Callback function called when the listener state is changed
Declaration
Swift
public typealias ListenerFunction<Type> = (Type) -> Void
-
Callback function called when the action listener state is changed
Declaration
Swift
public typealias ActionListenerFunction = (Action) -> Void
-
Filter function that decides if the listener should be notified or not
Declaration
Swift
public typealias FilterFunction<StateType> = (StateType, StateType) -> Bool
-
Function that selects part of the full state
Declaration
Swift
public typealias StateSelector<SelectedType> = (State) -> (SelectedType?)