From 6db635b0ff3364b9a9f2a611dfb34f6acdf62fc9 Mon Sep 17 00:00:00 2001 From: Tim Jones Date: Tue, 9 May 2023 17:14:17 -0500 Subject: [PATCH] fix async handler type --- package-lock.json | 4 ++-- package.json | 2 +- types.d.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index ef6b0326..91b54f99 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pg-boss", - "version": "9.0.0", + "version": "9.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pg-boss", - "version": "9.0.0", + "version": "9.0.1", "license": "MIT", "dependencies": { "cron-parser": "^4.0.0", diff --git a/package.json b/package.json index 688da767..07fbcdc4 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/types.d.ts b/types.d.ts index e167e763..703cd5e2 100644 --- a/types.d.ts +++ b/types.d.ts @@ -124,11 +124,11 @@ declare namespace PgBoss { } & ConnectionOptions; interface WorkHandler { - (job: PgBoss.Job): void; + (job: PgBoss.Job): Promise; } interface WorkWithMetadataHandler { - (job: PgBoss.JobWithMetadata): void; + (job: PgBoss.JobWithMetadata): Promise; } interface Request {