UNPKG

framework7

Version:

Full featured mobile HTML framework for building iOS & Android apps

41 lines (35 loc) 908 B
import { Framework7Plugin } from '../../components/app/app-class.js'; interface StoreGetterValue { value: any; onUpdated: (value: any) => any; __callback: any; } export interface StoreObject { state: any; getters: any; dispatch: (name: string, data: any) => Promise<any>; __removeCallback: (callback: any) => void; } export interface StoreParameters { state: object; actions?: object; getters?: object; } /** Create new store */ interface createStore { (storeParameters: StoreParameters): StoreObject; } export const createStore: createStore; export namespace Store { interface AppMethods { /** Create new store */ createStore: (storeParameters: StoreParameters) => StoreObject; } interface AppParams { /** Store */ store?: StoreParameters | StoreObject; } interface AppEvents {} } declare const StoreModule: Framework7Plugin; export default StoreModule;