소스 검색

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 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 {