pg-boss 9.0.0 → 9.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-boss",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "Queueing jobs in Node.js using PostgreSQL like a boss",
5
5
  "main": "./src/index.js",
6
6
  "engines": {
package/types.d.ts CHANGED
@@ -124,11 +124,11 @@ declare namespace PgBoss {
124
124
  } & ConnectionOptions;
125
125
 
126
126
  interface WorkHandler<ReqData> {
127
- (job: PgBoss.Job<ReqData>): void;
127
+ (job: PgBoss.Job<ReqData>): Promise<void>;
128
128
  }
129
129
 
130
130
  interface WorkWithMetadataHandler<ReqData> {
131
- (job: PgBoss.JobWithMetadata<ReqData>): void;
131
+ (job: PgBoss.JobWithMetadata<ReqData>): Promise<void>;
132
132
  }
133
133
 
134
134
  interface Request {