mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Lint
This commit is contained in:
parent
f09089cf77
commit
7c7c554ee7
84 changed files with 13879 additions and 14510 deletions
18
types/utils/queue.d.ts
vendored
18
types/utils/queue.d.ts
vendored
|
@ -1,31 +1,21 @@
|
|||
import { defer } from "./core";
|
||||
|
||||
export interface QueuedTask {
|
||||
task: any | Task,
|
||||
args: any[],
|
||||
deferred: any, // should be defer, but not working
|
||||
promise: Promise<any>
|
||||
task: any | Task;
|
||||
args: any[];
|
||||
deferred: any; // should be defer, but not working
|
||||
promise: Promise<any>;
|
||||
}
|
||||
|
||||
export default class Queue {
|
||||
constructor(context: any);
|
||||
|
||||
enqueue(func: Promise<Function> | Function, ...args: any[]): Promise<any>;
|
||||
|
||||
dequeue(): Promise<QueuedTask>;
|
||||
|
||||
dump(): void;
|
||||
|
||||
run(): Promise<void>;
|
||||
|
||||
flush(): Promise<void>;
|
||||
|
||||
clear(): void;
|
||||
|
||||
length(): number;
|
||||
|
||||
pause(): void;
|
||||
|
||||
stop(): void;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue