@@ -194,7 +194,7 @@ export function createBuilderStatusReporter(system: System, pretty?: boolean): D
194
194
} ;
195
195
}
196
196
197
- function createSolutionBuilderHostBase < T extends BuilderProgram > ( system : System , createProgram : CreateProgram < T > | undefined , reportDiagnostic ?: DiagnosticReporter , reportSolutionBuilderStatus ?: DiagnosticReporter ) {
197
+ function createSolutionBuilderHostBase < T extends BuilderProgram > ( system : System , createProgram : CreateProgram < T > | undefined , reportDiagnostic ?: DiagnosticReporter , reportSolutionBuilderStatus ?: DiagnosticReporter ) : SolutionBuilderHostBase < T > {
198
198
const host = createProgramHost ( system , createProgram ) as SolutionBuilderHostBase < T > ;
199
199
host . getModifiedTime = system . getModifiedTime ? path => system . getModifiedTime ! ( path ) : returnUndefined ;
200
200
host . setModifiedTime = system . setModifiedTime ? ( path , date ) => system . setModifiedTime ! ( path , date ) : noop ;
@@ -205,13 +205,13 @@ function createSolutionBuilderHostBase<T extends BuilderProgram>(system: System,
205
205
return host ;
206
206
}
207
207
208
- export function createSolutionBuilderHost < T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram > ( system = sys , createProgram ?: CreateProgram < T > , reportDiagnostic ?: DiagnosticReporter , reportSolutionBuilderStatus ?: DiagnosticReporter , reportErrorSummary ?: ReportEmitErrorSummary ) {
208
+ export function createSolutionBuilderHost < T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram > ( system : System = sys , createProgram ?: CreateProgram < T > , reportDiagnostic ?: DiagnosticReporter , reportSolutionBuilderStatus ?: DiagnosticReporter , reportErrorSummary ?: ReportEmitErrorSummary ) : SolutionBuilderHost < T > {
209
209
const host = createSolutionBuilderHostBase ( system , createProgram , reportDiagnostic , reportSolutionBuilderStatus ) as SolutionBuilderHost < T > ;
210
210
host . reportErrorSummary = reportErrorSummary ;
211
211
return host ;
212
212
}
213
213
214
- export function createSolutionBuilderWithWatchHost < T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram > ( system = sys , createProgram ?: CreateProgram < T > , reportDiagnostic ?: DiagnosticReporter , reportSolutionBuilderStatus ?: DiagnosticReporter , reportWatchStatus ?: WatchStatusReporter ) {
214
+ export function createSolutionBuilderWithWatchHost < T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram > ( system : System = sys , createProgram ?: CreateProgram < T > , reportDiagnostic ?: DiagnosticReporter , reportSolutionBuilderStatus ?: DiagnosticReporter , reportWatchStatus ?: WatchStatusReporter ) : SolutionBuilderWithWatchHost < T > {
215
215
const host = createSolutionBuilderHostBase ( system , createProgram , reportDiagnostic , reportSolutionBuilderStatus ) as SolutionBuilderWithWatchHost < T > ;
216
216
const watchHost = createWatchHost ( system , reportWatchStatus ) ;
217
217
copyProperties ( host , watchHost ) ;
0 commit comments