fix #15666: mark file as optional in Diagnostic

This commit is contained in:
Herrington Darkholme
2017-05-10 12:29:53 +08:00
parent 1737598935
commit 1bbc94fc67
5 changed files with 30 additions and 16 deletions

View File

@@ -3355,9 +3355,9 @@ namespace ts {
}
export interface Diagnostic {
file: SourceFile;
start: number;
length: number;
file: SourceFile | undefined;
start: number | undefined;
length: number | undefined;
messageText: string | DiagnosticMessageChain;
category: DiagnosticCategory;
code: number;