Use string literal type for script kind names

This commit is contained in:
zhengbli committed 2016-04-19 15:20:05 -07:00
1 parent a2035a572e
commit cc58e2d7eb
5 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -496,7 +496,7 @@ namespace Harness.LanguageService {
this.client = client;
}
openFile(fileName: string, content?: string, scriptKindName?: string): void {
openFile(fileName: string, content?: string, scriptKindName?: "TS" | "JS" | "TSX" | "JSX"): void {
super.openFile(fileName, content, scriptKindName);
this.client.openFile(fileName, content, scriptKindName);
}