Skip to content

Commit 11e72c6

Browse files
kalyabinktsn
authored andcommitted
dispatcher typescript declaration fix (vuejs#811)
1 parent 57506ca commit 11e72c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: types/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export declare class Store<S> {
3737
export declare function install(Vue: typeof _Vue): void;
3838

3939
export interface Dispatch {
40-
(type: string, payload?: any, options?: DispatchOptions): Promise<any[]>;
41-
<P extends Payload>(payloadWithType: P, options?: DispatchOptions): Promise<any[]>;
40+
(type: string, payload?: any, options?: DispatchOptions): Promise<any>;
41+
<P extends Payload>(payloadWithType: P, options?: DispatchOptions): Promise<any>;
4242
}
4343

4444
export interface Commit {

0 commit comments

Comments
 (0)