Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmichael123 committed Feb 5, 2025
1 parent 450ecef commit 242c996
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storage/framework/core/types/src/cron-jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export enum Every {
Year = '0 0 1 1 *',
}

export type JobHandler = (data?: any) => Promise<any> | any

/**
* Represents different backoff strategies for job retries
*/
Expand Down Expand Up @@ -81,7 +83,7 @@ export interface JobOptions {
/**
* Job handler function or identifier string
*/
handle?: string | Function
handle?: string | JobHandler
/**
* Action identifier
*/
Expand Down

0 comments on commit 242c996

Please sign in to comment.