Skip to content

Commit

Permalink
Update types (#232)
Browse files Browse the repository at this point in the history
* Sync package lock

* Update types
  • Loading branch information
fiznool committed Mar 16, 2021
1 parent 6362a55 commit ba9252f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

7 changes: 6 additions & 1 deletion types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ declare namespace PgBoss {

interface MaintenanceOptions {
noSupervisor?: boolean;

deleteAfterSeconds?: number;
deleteAfterMinutes?: number;
deleteAfterHours?: number;
Expand Down Expand Up @@ -65,6 +65,7 @@ declare namespace PgBoss {
}

interface RetentionOptions {
retentionSeconds?: number;
retentionMinutes?: number;
retentionHours?: number;
retentionDays?: number;
Expand Down Expand Up @@ -207,6 +208,10 @@ declare class PgBoss {
on(event: "maintenance", handler: () => void): void;
on(event: "monitor-states", handler: (monitorStates: PgBoss.MonitorStates) => void): void;

off(event: "error", handler: (error: Error) => void): void;
off(event: "maintenance", handler: () => void): void;
off(event: "monitor-states", handler: (monitorStates: PgBoss.MonitorStates) => void): void;

start(): Promise<PgBoss>;
stop(): Promise<void>;

Expand Down

0 comments on commit ba9252f

Please sign in to comment.