File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ export interface ConstructorOption {
2+ state ?: any ;
3+ mutations ?: any ;
4+ middlewares ?: {
5+ snapshot : boolean ;
6+ onInit : Function ;
7+ onMutation : Function ;
8+ } [ ] ;
9+ strict ?: boolean ;
10+ modules ?: any ;
11+ }
12+
13+ export class Store < S > {
14+ constructor ( obj : ConstructorOption ) ;
15+ state : S ;
16+ dispatch ( mutationName : any , ...args : any [ ] ) : void ;
17+ watch ( pathOrGetter : ( string | Function ) , cb : Function , options : any ) : void ;
18+ }
19+
20+ export function install ( ...args : any [ ] ) : any ;
Original file line number Diff line number Diff line change 1+ {
2+ "compilerOptions" : {
3+ "module" : " commonjs" ,
4+ "target" : " es5" ,
5+ "noImplicitAny" : true ,
6+ "sourceMap" : false ,
7+ "experimentalDecorators" : true
8+ },
9+ "exclude" : [
10+ " node_modules"
11+ ]
12+ }
You can’t perform that action at this time.
0 commit comments