Skip to content

Commit c461ed5

Browse files
hanslalexeagle
authored andcommitted
feat(@angular-devkit/core): createJobFactory does not have to have options
It matches the other factories.
1 parent 0e6384b commit c461ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/core/src/experimental/jobs/create-job-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export function createJobHandler<A extends JsonValue, I extends JsonValue, O ext
181181
*/
182182
export function createJobFactory<A extends JsonValue, I extends JsonValue, O extends JsonValue>(
183183
loader: () => Promise<JobHandler<A, I, O>>,
184-
options: Partial<JobDescription>,
184+
options: Partial<JobDescription> = {},
185185
): JobHandler<A, I, O> {
186186
const handler = (argument: A, context: JobHandlerContext<A, I, O>) => {
187187
return from(loader())

0 commit comments

Comments
 (0)