Skip to content

Commit a796f15

Browse files
ariothf
authored andcommitted
Fix typings (#67)
1 parent 751d6ae commit a796f15

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/types/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import Vue, { PluginFunction } from 'vue';
22
import { Store } from 'vuex';
33

4-
type AsyncFunction = ((any) => Promise<any>) | Promise<any>;
4+
type AsyncFunction = ((...args: any) => Promise<any>) | Promise<any>;
55

66
export default class VueWait extends VueWaitInstance {
77
constructor(options?: VueWaitOptions);
88

99
static install(): PluginFunction<any>;
1010

11-
static init(Vue: Vue, store: Store<any>);
11+
static init(Vue: Vue, store: Store<any>): void;
1212
}
1313

1414
/**
@@ -77,10 +77,10 @@ export class VueWaitInstance {
7777
* @param {number} [total]
7878
* @memberof VueWaitInstance
7979
*/
80-
progress(waiter: string, current: number, total?: number);
80+
progress(waiter: string, current: number, total?: number): void;
8181

82-
waitFor(waiter, callback: AsyncFunction, forceSync?: false): Promise<any>;
83-
waitFor(waiter, callback: Function, forceSync: true): Promise<any>;
82+
waitFor(waiter: string, callback: AsyncFunction, forceSync?: false): Promise<any>;
83+
waitFor(waiter: string, callback: Function, forceSync: true): Promise<any>;
8484
}
8585

8686
export interface VueWaitOptions{

0 commit comments

Comments
 (0)