Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
timgit committed Sep 15, 2023
1 parent 4d772c5 commit 59b5ba5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ declare namespace PgBoss {
id: string,
name: string,
options: WorkOptions,
state: 'created' | 'retry' | 'active' | 'completed' | 'cancelled' | 'failed',
state: 'created' | 'active' | 'stopping' | 'stopped'
count: number,
createdOn: Date,
lastFetchedOn: Date,
Expand All @@ -244,7 +244,8 @@ declare namespace PgBoss {
interface StopOptions {
destroy?: boolean,
graceful?: boolean,
timeout?: number
timeout?: number,
wait?: boolean
}

interface OffWorkOptions {
Expand Down Expand Up @@ -355,6 +356,7 @@ declare class PgBoss extends EventEmitter {
archive(): Promise<void>;
purge(): Promise<void>;
expire(): Promise<void>;
maintain(): Promise<void>;

schedule(name: string, cron: string, data?: object, options?: PgBoss.ScheduleOptions): Promise<void>;
unschedule(name: string): Promise<void>;
Expand Down

0 comments on commit 59b5ba5

Please sign in to comment.