mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-22 12:33:38 +08:00
Merge pull request #17371 from amiram/kue-process-fix
kue - Fix process callback signature
This commit is contained in:
3
types/kue/index.d.ts
vendored
3
types/kue/index.d.ts
vendored
@@ -30,7 +30,7 @@ export declare class Queue extends events.EventEmitter {
|
||||
checkActiveJobTtl(ttlOptions: Object): void;
|
||||
watchStuckJobs(ms: number): void;
|
||||
setting(name: string, fn: Function): Queue;
|
||||
process(type: string, n?: number | DoneCallback, fn?: DoneCallback): void;
|
||||
process(type: string, n?: number | ProcessCallback, fn?: ProcessCallback): void;
|
||||
shutdown(timeout: number, type: string, fn: Function): Queue;
|
||||
types(fn: Function): Queue;
|
||||
state(string: string, fn: Function): Queue;
|
||||
@@ -59,6 +59,7 @@ interface Priorities {
|
||||
|
||||
export type DoneCallback = (err?: any, result?: any) => void;
|
||||
export type JobCallback = (err?: any, job?: Job) => void;
|
||||
export type ProcessCallback = (job: Job, cb: DoneCallback) => void;
|
||||
|
||||
export declare class Job extends events.EventEmitter {
|
||||
public id: number;
|
||||
|
||||
Reference in New Issue
Block a user