Skip to content

Commit 80e798c

Browse files
authored
fix: make queue job args non-optional (#2743)
There will always be an abort signal passed to a queue job so the options arg will always be present.
1 parent b4f02a6 commit 80e798c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/utils/src/queue/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export interface QueueInit<JobReturnType, JobOptions extends AbortOptions = Abor
4848

4949
export type JobStatus = 'queued' | 'running' | 'errored' | 'complete'
5050

51-
export interface RunFunction<Options = AbortOptions, ReturnType = void> {
52-
(opts?: Options): Promise<ReturnType>
51+
export interface RunFunction<Options extends AbortOptions = AbortOptions, ReturnType = void> {
52+
(options: Options): Promise<ReturnType>
5353
}
5454

5555
export interface JobMatcher<JobOptions extends AbortOptions = AbortOptions> {

0 commit comments

Comments
 (0)