@@ -335,6 +335,22 @@ namespace ts {
335
335
export interface SolutionBuilderWithWatchHost extends SolutionBuilderHost , WatchHost {
336
336
}
337
337
338
+ export interface SolutionBuilder {
339
+ buildAllProjects ( ) : ExitStatus ;
340
+ cleanAllProjects ( ) : ExitStatus ;
341
+
342
+ /*@internal */ resolveProjectName ( name : string ) : ResolvedConfigFileName ;
343
+ /*@internal */ getUpToDateStatusOfFile ( configFileName : ResolvedConfigFileName ) : UpToDateStatus ;
344
+ /*@internal */ getBuildGraph ( configFileNames : ReadonlyArray < string > ) : DependencyGraph | undefined ;
345
+
346
+ /*@internal */ invalidateProject ( configFileName : string , reloadLevel ?: ConfigFileProgramReloadLevel ) : void ;
347
+ /*@internal */ buildInvalidatedProject ( ) : void ;
348
+
349
+ /*@internal */ resetBuildContext ( opts ?: BuildOptions ) : void ;
350
+
351
+ /*@internal */ startWatching ( ) : void ;
352
+ }
353
+
338
354
/**
339
355
* Create a function that reports watch status by writing to the system and handles the formating of the diagnostic
340
356
*/
@@ -373,7 +389,7 @@ namespace ts {
373
389
* TODO: use SolutionBuilderWithWatchHost => watchedSolution
374
390
* use SolutionBuilderHost => Solution
375
391
*/
376
- export function createSolutionBuilder ( host : SolutionBuilderHost , rootNames : ReadonlyArray < string > , defaultOptions : BuildOptions ) {
392
+ export function createSolutionBuilder ( host : SolutionBuilderHost , rootNames : ReadonlyArray < string > , defaultOptions : BuildOptions ) : SolutionBuilder {
377
393
const hostWithWatch = host as SolutionBuilderWithWatchHost ;
378
394
const currentDirectory = host . getCurrentDirectory ( ) ;
379
395
const getCanonicalFileName = createGetCanonicalFileName ( host . useCaseSensitiveFileNames ( ) ) ;
@@ -405,7 +421,6 @@ namespace ts {
405
421
406
422
return {
407
423
buildAllProjects,
408
- getUpToDateStatus,
409
424
getUpToDateStatusOfFile,
410
425
cleanAllProjects,
411
426
resetBuildContext,
0 commit comments