overmind-vue
Version:
Functional actions
17 lines (16 loc) • 621 B
TypeScript
import { IContext, Overmind } from 'overmind';
import { Component, ComponentOptions } from 'vue';
type AnyComponent = ComponentOptions | Component;
export declare const createPlugin: (overmind: any) => {
install(Vue: any, propsCallback?: ({ state, actions, effects }: {
state: any;
actions: any;
effects: any;
}) => {
state: any;
actions: any;
effects: any;
}): void;
};
export declare function createConnect<Context extends IContext<any>>(overmind: Overmind<any>): <T>(cb: AnyComponent | ((context: Context) => T), component?: AnyComponent) => any;
export {};