Skip to content

Commit 711e890

Browse files
committed
Added | undefined to properties for watching that can be undefined
1 parent c2d0d53 commit 711e890

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/server/project.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -936,9 +936,9 @@ namespace ts.server {
936936
export class ConfiguredProject extends Project {
937937
private typeAcquisition: TypeAcquisition;
938938
private projectFileWatcher: FileWatcher;
939-
private directoryWatcher: FileWatcher;
940-
private directoriesWatchedForWildcards: Map<FileWatcher>;
941-
private typeRootsWatchers: FileWatcher[];
939+
private directoryWatcher: FileWatcher | undefined;
940+
private directoriesWatchedForWildcards: Map<FileWatcher> | undefined;
941+
private typeRootsWatchers: FileWatcher[] | undefined;
942942
readonly canonicalConfigFilePath: NormalizedPath;
943943

944944
private plugins: PluginModule[] = [];

0 commit comments

Comments
 (0)