Skip to content

Commit

Permalink
fix: fix compiling error
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Sep 29, 2019
1 parent 3fbacd0 commit 3cf2617
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/classes/compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
WorkerOptions,
Processor,
} from '../interfaces';
import IORedis = require('ioredis');

type CommonOptions = QueueSchedulerOptions &
QueueOptions &
Expand Down Expand Up @@ -91,7 +92,7 @@ export class Queue3<T = any> extends EventEmitter {
* If the promise is rejected, the error will be passed as a second argument to the "failed" event.
* If it is resolved, its value will be the "completed" event's second argument.
*/
process(processor: string | Processor): Promise<void> {
process(processor: string | Processor): Promise<IORedis.Redis> {
if (this.worker) {
throw new Error('Queue3.process() cannot be called twice');
}
Expand Down

0 comments on commit 3cf2617

Please sign in to comment.