feat(@angular-devkit/core): createJobFactory does not have to have options

It matches the other factories.
This commit is contained in:
Hans Larsen 2019-02-07 11:31:08 -08:00 committed by Alex Eagle
parent 0e6384b8c4
commit c461ed5960

View File

@ -181,7 +181,7 @@ export function createJobHandler<A extends JsonValue, I extends JsonValue, O ext
*/ */
export function createJobFactory<A extends JsonValue, I extends JsonValue, O extends JsonValue>( export function createJobFactory<A extends JsonValue, I extends JsonValue, O extends JsonValue>(
loader: () => Promise<JobHandler<A, I, O>>, loader: () => Promise<JobHandler<A, I, O>>,
options: Partial<JobDescription>, options: Partial<JobDescription> = {},
): JobHandler<A, I, O> { ): JobHandler<A, I, O> {
const handler = (argument: A, context: JobHandlerContext<A, I, O>) => { const handler = (argument: A, context: JobHandlerContext<A, I, O>) => {
return from(loader()) return from(loader())