@@ -51,23 +51,23 @@ export declare function install(Vue: typeof _Vue): void;
51
51
export interface Dispatch < Actions = Record < string , any > , RootActions = Record < string , any > > {
52
52
// Local
53
53
< K extends keyof Actions > ( type : K , payload ?: Actions [ K ] , options ?: LocalDispatchOptions ) : Promise < any > ;
54
- < K extends keyof Actions > ( payloadWithType : Payload < K , Actions > , options ?: LocalDispatchOptions ) : Promise < any > ;
54
+ < K extends keyof Actions > ( payloadWithType : InputPayload < K , Actions > , options ?: LocalDispatchOptions ) : Promise < any > ;
55
55
56
56
// Root
57
57
< K extends keyof RootActions > ( type : K , options : RootDispatchOptions ) : Promise < any > ;
58
58
< K extends keyof RootActions > ( type : K , payload : RootActions [ K ] , options : RootDispatchOptions ) : Promise < any > ;
59
- < K extends keyof RootActions > ( payloadWithType : Payload < K , RootActions > , options : RootDispatchOptions ) : Promise < any > ;
59
+ < K extends keyof RootActions > ( payloadWithType : InputPayload < K , RootActions > , options : RootDispatchOptions ) : Promise < any > ;
60
60
}
61
61
62
62
export interface Commit < Mutations = Record < string , any > , RootMutations = Record < string , any > > {
63
63
// Local
64
64
< K extends keyof Mutations > ( type : K , payload ?: Mutations [ K ] , options ?: LocalCommitOptions ) : void ;
65
- < K extends keyof Mutations > ( payloadWithType : Payload < K , Mutations > , options ?: LocalCommitOptions ) : void ;
65
+ < K extends keyof Mutations > ( payloadWithType : InputPayload < K , Mutations > , options ?: LocalCommitOptions ) : void ;
66
66
67
67
// Root
68
68
< K extends keyof RootMutations > ( type : K , options : RootCommitOptions ) : void ;
69
69
< K extends keyof RootMutations > ( type : K , payload : RootMutations [ K ] , options : RootCommitOptions ) : void ;
70
- < K extends keyof RootMutations > ( payloadWithType : Payload < K , RootMutations > , options : RootCommitOptions ) : void ;
70
+ < K extends keyof RootMutations > ( payloadWithType : InputPayload < K , RootMutations > , options : RootCommitOptions ) : void ;
71
71
}
72
72
73
73
export interface ActionContext <
@@ -88,17 +88,17 @@ export interface ActionContext<
88
88
rootGetters : RG ;
89
89
}
90
90
91
- export interface BasePayload {
91
+ export interface Payload {
92
92
type : string ;
93
93
}
94
94
95
- type Payload < K extends keyof P , P > = { type : K } & P [ K ]
95
+ type InputPayload < K extends keyof P , P > = { type : K } & P [ K ]
96
96
97
- export interface MutationPayload extends BasePayload {
97
+ export interface MutationPayload extends Payload {
98
98
payload : any ;
99
99
}
100
100
101
- export interface ActionPayload extends BasePayload {
101
+ export interface ActionPayload extends Payload {
102
102
payload : any ;
103
103
}
104
104
0 commit comments