Browse Source

dispatcher typescript declaration fix (#811)

Max Kalyabin 8 năm trước cách đây
mục cha
commit
11e72c61d5
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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 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 {