Merge pull request #25680 from a-tarasyuk/bug/25667-getmodifiedtime-has-wrong-return-type

25667 - getModifiedTime has wrong return type
This commit is contained in:
Mohamed Hegazy
2018-07-20 16:35:43 -07:00
committed by GitHub
6 changed files with 20 additions and 15 deletions
+2 -2
View File
@@ -4684,7 +4684,7 @@ namespace ts {
export interface UpToDateHost {
fileExists(fileName: string): boolean;
getModifiedTime(fileName: string): Date;
getModifiedTime(fileName: string): Date | undefined;
getUnchangedTime?(fileName: string): Date | undefined;
getLastStatus?(fileName: string): UpToDateStatus | undefined;
setLastStatus?(fileName: string, status: UpToDateStatus): void;
@@ -4822,7 +4822,7 @@ namespace ts {
/* @internal */ hasChangedAutomaticTypeDirectiveNames?: boolean;
createHash?(data: string): string;
getModifiedTime?(fileName: string): Date;
getModifiedTime?(fileName: string): Date | undefined;
setModifiedTime?(fileName: string, date: Date): void;
deleteFile?(fileName: string): void;
}