Skip to content

Commit 314f2e6

Browse files
committed
Make close() in interface Watch<T> public
Closes #31526
1 parent a150d55 commit 314f2e6

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/compiler/watch.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,6 @@ namespace ts {
603603
/*@internal*/
604604
getCurrentProgram(): T;
605605
/** Closes the watch */
606-
/*@internal*/
607606
close(): void;
608607
}
609608

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4548,6 +4548,8 @@ declare namespace ts {
45484548
interface Watch<T> {
45494549
/** Synchronize with host and get updated program */
45504550
getProgram(): T;
4551+
/** Closes the watch */
4552+
close(): void;
45514553
}
45524554
/**
45534555
* Creates the watch what generates program using the config file

tests/baselines/reference/api/typescript.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4548,6 +4548,8 @@ declare namespace ts {
45484548
interface Watch<T> {
45494549
/** Synchronize with host and get updated program */
45504550
getProgram(): T;
4551+
/** Closes the watch */
4552+
close(): void;
45514553
}
45524554
/**
45534555
* Creates the watch what generates program using the config file

0 commit comments

Comments
 (0)