Use string literal type for script kind names

This commit is contained in:
zhengbli
2016-04-19 15:17:36 -07:00
parent a2035a572e
commit cc58e2d7eb
5 changed files with 9 additions and 9 deletions

View File

@@ -520,9 +520,9 @@ declare namespace ts.server.protocol {
fileContent?: string;
/**
* Used to specify the script kind of the file explicitly. It could be one of the following:
* ".ts", ".js", ".tsx", ".jsx"
* "TS", "JS", "TSX", "JSX"
*/
scriptKindName?: string;
scriptKindName?: "TS" | "JS" | "TSX" | "JSX";
}
/**