mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
feat(@angular-devkit/core): createJobFactory does not have to have options
It matches the other factories.
This commit is contained in:
parent
0e6384b8c4
commit
c461ed5960
@ -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>(
|
||||
loader: () => Promise<JobHandler<A, I, O>>,
|
||||
options: Partial<JobDescription>,
|
||||
options: Partial<JobDescription> = {},
|
||||
): JobHandler<A, I, O> {
|
||||
const handler = (argument: A, context: JobHandlerContext<A, I, O>) => {
|
||||
return from(loader())
|
||||
|
Loading…
x
Reference in New Issue
Block a user