Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 314f2e6

Browse filesBrowse files
committed
Make close() in interface Watch<T> public
Closes microsoft#31526
1 parent a150d55 commit 314f2e6
Copy full SHA for 314f2e6

3 files changed

+4-1Lines changed: 4 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/compiler/watch.ts‎

Copy file name to clipboardExpand all lines: src/compiler/watch.ts
-1Lines 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

Collapse file

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

Copy file name to clipboardExpand all lines: tests/baselines/reference/api/tsserverlibrary.d.ts
+2Lines 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
Collapse file

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

Copy file name to clipboardExpand all lines: tests/baselines/reference/api/typescript.d.ts
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.