@@ -73,7 +73,7 @@ export interface Builder<OptionT extends json.JsonObject> {
73
73
export interface BuilderContext {
74
74
id : number ; // Unique amongst contexts.
75
75
76
- builder : BuilderInfo ,
76
+ builder : BuilderInfo ;
77
77
logger : logging . LoggerApi ;
78
78
79
79
workspaceRoot : string ;
@@ -231,7 +231,7 @@ export function createBuilder<OptT extends json.JsonObject>(
231
231
let currentState : BuilderProgressState = BuilderProgressState . Stopped ;
232
232
let current = 0 ;
233
233
let status = '' ;
234
- let total : number = 1 ;
234
+ let total = 1 ;
235
235
236
236
function progress ( progress : TypedBuilderProgress , context : BuilderContext ) {
237
237
currentState = progress . state ;
@@ -267,15 +267,15 @@ export function createBuilder<OptT extends json.JsonObject>(
267
267
target : i . target as Target ,
268
268
logger : logger ,
269
269
id : _uniqueId ++ ,
270
- scheduleTarget ( target : Target , overrides : json . JsonObject ) {
270
+ scheduleTarget ( target : Target , overrides : json . JsonObject = { } ) {
271
271
return _scheduleTarget ( target , overrides , {
272
272
scheduler,
273
273
logger : logger . createChild ( '' ) ,
274
274
workspaceRoot : i . workspaceRoot ,
275
275
currentDirectory : i . currentDirectory ,
276
276
} ) ;
277
277
} ,
278
- scheduleBuilder ( builderName : string , options : json . JsonObject ) {
278
+ scheduleBuilder ( builderName : string , options : json . JsonObject = { } ) {
279
279
return _scheduleByName ( builderName , options , {
280
280
scheduler,
281
281
logger : logger . createChild ( '' ) ,
@@ -586,7 +586,11 @@ export class Architect {
586
586
return this . _scheduler . has ( name ) ;
587
587
}
588
588
589
- scheduleBuilder ( name : string , buildOptions : json . JsonObject , options : ScheduleOptions = { } ) {
589
+ scheduleBuilder (
590
+ name : string ,
591
+ buildOptions : json . JsonObject ,
592
+ options : ScheduleOptions = { } ,
593
+ ) : Promise < BuilderRun > {
590
594
if ( ! / ^ [ ^ : ] + : [ ^ : ] + $ / . test ( name ) ) {
591
595
throw new Error ( 'Invalid builder name: ' + JSON . stringify ( name ) ) ;
592
596
}
@@ -600,7 +604,7 @@ export class Architect {
600
604
}
601
605
scheduleTarget (
602
606
target : Target ,
603
- overrides : json . JsonObject ,
607
+ overrides : json . JsonObject = { } ,
604
608
options : ScheduleOptions = { } ,
605
609
) : Promise < BuilderRun > {
606
610
return _scheduleTarget ( target , overrides , {
0 commit comments