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
typeThe type of state expected.
Return Value
The unwrapped store if successful.
View on GitHub
AnyStore Protocol Reference