Skip to content

Commit 70087ed

Browse files
NaridaLmhegazy
authored andcommitted
type WriteFileCallback: make param sourceFiles required. (microsoft#18731)
Fixes microsoft#15007
1 parent 8f97248 commit 70087ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2442,7 +2442,7 @@ namespace ts {
24422442
}
24432443

24442444
export interface WriteFileCallback {
2445-
(fileName: string, data: string, writeByteOrderMark: boolean, onError?: (message: string) => void, sourceFiles?: ReadonlyArray<SourceFile>): void;
2445+
(fileName: string, data: string, writeByteOrderMark: boolean, onError: ((message: string) => void) | undefined, sourceFiles: ReadonlyArray<SourceFile>): void;
24462446
}
24472447

24482448
export class OperationCanceledException { }

0 commit comments

Comments
 (0)