Skip to content

Commit 585420e

Browse files
committed
Updated callback signature
1 parent 638cf5b commit 585420e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/sys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ namespace ts {
846846
}
847847
}
848848

849-
type FsWatchCallback = (eventName: "rename" | "change", relativeFileName: string) => void;
849+
type FsWatchCallback = (eventName: "rename" | "change", relativeFileName: string | undefined) => void;
850850

851851
function createFileWatcherCallback(callback: FsWatchCallback): FileWatcherCallback {
852852
return (_fileName, eventKind) => callback(eventKind === FileWatcherEventKind.Changed ? "change" : "rename", "");

0 commit comments

Comments
 (0)