@@ -0,0 +1,20 @@
+export interface ConstructorOption {
+ state?: any;
+ mutations?: any;
+ middlewares?: {
+ snapshot: boolean;
+ onInit: Function;
+ onMutation: Function;
+ }[];
+ strict?: boolean;
+ modules?: any;
+}
+
+export class Store<S> {
+ constructor(obj: ConstructorOption);
+ state: S;
+ dispatch(mutationName: any, ...args: any[]): void;
+ watch(pathOrGetter: (string | Function), cb: Function, options: any): void;
+export function install(...args: any[]): any;
@@ -0,0 +1,12 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "target": "es5",
+ "noImplicitAny": true,
+ "sourceMap": false,
+ "experimentalDecorators": true
+ },
+ "exclude": [
+ "node_modules"
+ ]