Fix the api test failures

This commit is contained in:
Sheetal Nandi
2018-01-17 12:59:10 -08:00
parent c3b9904190
commit 09caaa3775
4 changed files with 2 additions and 16 deletions
+1
View File
@@ -24,6 +24,7 @@ namespace ts {
export type FileWatcherCallback = (fileName: string, eventKind: FileWatcherEventKind) => void;
export type DirectoryWatcherCallback = (fileName: string) => void;
/*@internal*/
export interface WatchedFile {
readonly fileName: string;
readonly callback: FileWatcherCallback;
-4
View File
@@ -321,10 +321,6 @@ namespace ts.server {
typesMapLocation?: string;
}
export type WatchFile = (host: ServerHost, file: string, cb: FileWatcherCallback, pollingInterval: number | undefined, watchType: WatchType, project?: Project) => FileWatcher;
export type WatchFilePath = (host: ServerHost, file: string, cb: FilePathWatcherCallback, pollingInterval: number | undefined, path: Path, watchType: WatchType, project?: Project) => FileWatcher;
export type WatchDirectory = (host: ServerHost, directory: string, cb: DirectoryWatcherCallback, flags: WatchDirectoryFlags, watchType: WatchType, project?: Project) => FileWatcher;
function getDetailWatchInfo(watchType: WatchType, project: Project | undefined) {
return `Project: ${project ? project.getProjectName() : ""} WatchType: ${watchType}`;
}