AnyStore
public protocol AnyStore : ActionDispatcher
A type-erased wrapper of a Store.
-
Unwrap the store for a specific state type.
Declaration
Swift
func unwrap<T>(as type: T.Type) -> StoreProxy<T>?
Parameters
type
The type of state expected.
Return Value
The unwrapped store if successful.