|
@@ -43,6 +43,8 @@ export declare class Store<S> {
|
|
|
|
|
|
export function createStore<S>(options: StoreOptions<S>): Store<S>;
|
|
|
|
|
|
+export function useStore<S = any>(): Store<S>;
|
|
|
+
|
|
|
export interface Dispatch {
|
|
|
(type: string, payload?: any, options?: DispatchOptions): Promise<any>;
|
|
|
<P extends Payload>(payloadWithType: P, options?: DispatchOptions): Promise<any>;
|