Skip to content

Commit

Permalink
fix async handler type
Browse files Browse the repository at this point in the history
  • Loading branch information
timgit committed May 9, 2023
1 parent 1f54126 commit 6db635b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg-boss",
"version": "9.0.0",
"version": "9.0.1",
"description": "Queueing jobs in Node.js using PostgreSQL like a boss",
"main": "./src/index.js",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ declare namespace PgBoss {
} & ConnectionOptions;

interface WorkHandler<ReqData> {
(job: PgBoss.Job<ReqData>): void;
(job: PgBoss.Job<ReqData>): Promise<void>;
}

interface WorkWithMetadataHandler<ReqData> {
(job: PgBoss.JobWithMetadata<ReqData>): void;
(job: PgBoss.JobWithMetadata<ReqData>): Promise<void>;
}

interface Request {
Expand Down

0 comments on commit 6db635b

Please sign in to comment.