mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 20:25:23 -06:00
Fix the api test failures
This commit is contained in:
parent
c3b9904190
commit
09caaa3775
@ -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;
|
||||
|
||||
@ -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}`;
|
||||
}
|
||||
|
||||
@ -2824,11 +2824,6 @@ declare namespace ts {
|
||||
}
|
||||
type FileWatcherCallback = (fileName: string, eventKind: FileWatcherEventKind) => void;
|
||||
type DirectoryWatcherCallback = (fileName: string) => void;
|
||||
interface WatchedFile {
|
||||
fileName: string;
|
||||
callback: FileWatcherCallback;
|
||||
mtime?: Date;
|
||||
}
|
||||
/**
|
||||
* Partial interface of the System thats needed to support the caching of directory structure
|
||||
*/
|
||||
@ -7765,7 +7760,6 @@ declare namespace ts.server {
|
||||
/** Tracks projects that we have already sent telemetry for. */
|
||||
private readonly seenProjects;
|
||||
constructor(opts: ProjectServiceOptions);
|
||||
private createWatcherLog(watchType, project);
|
||||
toPath(fileName: string): Path;
|
||||
private loadTypesMap();
|
||||
updateTypingsForProject(response: SetTypings | InvalidateCachedTypings | PackageInstalledResponse): void;
|
||||
@ -7792,7 +7786,7 @@ declare namespace ts.server {
|
||||
private findContainingExternalProject(fileName);
|
||||
getFormatCodeOptions(file?: NormalizedPath): FormatCodeSettings;
|
||||
private updateProjectGraphs(projects);
|
||||
private onSourceFileChanged(fileName, eventKind);
|
||||
private onSourceFileChanged(fileName, eventKind, path);
|
||||
private handleDeletedFile(info);
|
||||
private onConfigChangedForConfiguredProject(project, eventKind);
|
||||
/**
|
||||
|
||||
@ -2824,11 +2824,6 @@ declare namespace ts {
|
||||
}
|
||||
type FileWatcherCallback = (fileName: string, eventKind: FileWatcherEventKind) => void;
|
||||
type DirectoryWatcherCallback = (fileName: string) => void;
|
||||
interface WatchedFile {
|
||||
fileName: string;
|
||||
callback: FileWatcherCallback;
|
||||
mtime?: Date;
|
||||
}
|
||||
/**
|
||||
* Partial interface of the System thats needed to support the caching of directory structure
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user