mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 03:02:04 +08:00
GetJob returns a promise of job or null (#27448)
Says it in the jsdoc even.
This commit is contained in:
2
types/bull/index.d.ts
vendored
2
types/bull/index.d.ts
vendored
@@ -476,7 +476,7 @@ declare namespace Bull {
|
||||
* Returns a promise that will return the job instance associated with the jobId parameter.
|
||||
* If the specified job cannot be located, the promise callback parameter will be set to null.
|
||||
*/
|
||||
getJob(jobId: JobId): Promise<Job<T>>;
|
||||
getJob(jobId: JobId): Promise<Job<T> | null>;
|
||||
|
||||
/**
|
||||
* Returns a promise that will return an array with the waiting jobs between start and end.
|
||||
|
||||
Reference in New Issue
Block a user