aboutsummaryrefslogtreecommitdiff
path: root/src/ppq/index.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/ppq/index.d.ts')
-rw-r--r--src/ppq/index.d.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ppq/index.d.ts b/src/ppq/index.d.ts
index 0eb2361..ee12f89 100644
--- a/src/ppq/index.d.ts
+++ b/src/ppq/index.d.ts
@@ -1,7 +1,8 @@
-// tslint:disable-next-line:no-any
+// tslint:disable:no-any
+
type Promiser<T = any> = () => PromiseLike<T>;
export class PromisePriorityQueue {
public constructor(concurrent?: number, least?: number);
- public enqueue(priority: number, promiser: Promiser): void;
+ public enqueue<T = any>(priority: number, promiser: Promiser<T>): Promise<T>;
}