瀏覽代碼

dispatcher typescript declaration fix (#811)

Max Kalyabin 8 年之前
父節點
當前提交
11e72c61d5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      types/index.d.ts

+ 2 - 2
types/index.d.ts

@@ -37,8 +37,8 @@ export declare class Store<S> {
 export declare function install(Vue: typeof _Vue): void;
 export declare function install(Vue: typeof _Vue): void;
 
 
 export interface Dispatch {
 export interface Dispatch {
-  (type: string, payload?: any, options?: DispatchOptions): Promise<any[]>;
-  <P extends Payload>(payloadWithType: P, options?: DispatchOptions): Promise<any[]>;
+  (type: string, payload?: any, options?: DispatchOptions): Promise<any>;
+  <P extends Payload>(payloadWithType: P, options?: DispatchOptions): Promise<any>;
 }
 }
 
 
 export interface Commit {
 export interface Commit {