UNPKG

vuex-xhr-state

Version:

Use Vuex to manage the state of you're ajax calls.

20 lines (19 loc) 897 B
import { Plugin, Store } from 'vuex'; import VuexXhr from './VuexXhr'; export declare class VuexXhrCreator { namespace: string; modules: {}; store?: Store<unknown>; private invalidateCreators; private invalidateXhr; constructor(namespace: string, xhrStores: Array<VuexXhr<any, any, any, any>>); plugin: () => Plugin<unknown>; reset: ($store: Store<any>) => void; invalidateAll: (fromNamespace?: string[]) => void; invalidates: (vxs: VuexXhrCreator | VuexXhrCreator[] | VuexXhr<any, any, any, any> | VuexXhr<any, any, any, any>[]) => void; invalidatesCreator: (creators: VuexXhrCreator | VuexXhrCreator[]) => void; invalidatesXhr: (xhr: VuexXhr<any, any, any, any> | VuexXhr<any, any, any, any>[]) => void; xhrStoresToModules: (xhrStores: VuexXhr<object, object, any, any>[]) => { [_: string]: VuexXhr<object, object, any, any>; }; }