Skip to content

Commit e428ed6

Browse files
committed
quick fix for API test failure
1 parent 5fa6dfd commit e428ed6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/baselines/reference/APISample_WatchWithOwnWatchHost.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ function watchMain() {
3636
readDirectory: ts.sys.readDirectory,
3737
realpath: ts.sys.realpath,
3838

39-
watchFile: ts.sys.watchFile!,
40-
watchDirectory: ts.sys.watchDirectory!,
39+
watchFile: ts.sys.watchFile! as any,
40+
watchDirectory: ts.sys.watchDirectory! as any,
4141
createProgram: ts.createAbstractBuilder
4242
};
4343

tests/cases/compiler/APISample_WatchWithOwnWatchHost.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ function watchMain() {
4040
readDirectory: ts.sys.readDirectory,
4141
realpath: ts.sys.realpath,
4242

43-
watchFile: ts.sys.watchFile!,
44-
watchDirectory: ts.sys.watchDirectory!,
43+
watchFile: ts.sys.watchFile! as any,
44+
watchDirectory: ts.sys.watchDirectory! as any,
4545
createProgram: ts.createAbstractBuilder
4646
};
4747

0 commit comments

Comments
 (0)