Skip to content

Commit

Permalink
Update subscribe handler types to reflect removal of done arg and pro…
Browse files Browse the repository at this point in the history
…mise-returning handlers.
  • Loading branch information
GriffinSchneider committed Jun 6, 2020
1 parent 8a9a269 commit bf1deb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ declare namespace PgBoss {
}

interface SubscribeHandler<ReqData, ResData> {
(job: PgBoss.JobWithDoneCallback<ReqData, ResData>, done: PgBoss.JobDoneCallback<ResData>): void;
(job: PgBoss.JobWithDoneCallback<ReqData, ResData>): Promise<ResData> | void;
}

interface SubscribeWithMetadataHandler<ReqData, ResData> {
(job: PgBoss.JobWithMetadataDoneCallback<ReqData, ResData>, done: PgBoss.JobDoneCallback<ResData>): void;
(job: PgBoss.JobWithMetadataDoneCallback<ReqData, ResData>): Promise<ResData> | void;
}

interface Request {
Expand Down

0 comments on commit bf1deb9

Please sign in to comment.