diff options
Diffstat (limited to 'src/ppq/index.d.ts')
| -rw-r--r-- | src/ppq/index.d.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ppq/index.d.ts b/src/ppq/index.d.ts index ee12f89..21cdeaf 100644 --- a/src/ppq/index.d.ts +++ b/src/ppq/index.d.ts @@ -1,8 +1,11 @@ // tslint:disable:no-any -type Promiser<T = any> = () => PromiseLike<T>; +export type Promiser<T = any> = (args: any) => PromiseLike<T>; export class PromisePriorityQueue { public constructor(concurrent?: number, least?: number); - public enqueue<T = any>(priority: number, promiser: Promiser<T>): Promise<T>; + public enqueue<T = any>(priority: number, promiser: Promiser<T>, binding: any, ...argv: any[]): Promise<T>; + public readonly size: number; } + +export const queue: PromisePriorityQueue; |
