Коммит
49748ca5b2
5
index.ts
5
index.ts
|
@ -12,10 +12,10 @@ Example:
|
|||
|
||||
/** Parse-able TypeScript versions. Only add to this list if we will support this version on DefinitelyTyped. */
|
||||
export type TypeScriptVersion =
|
||||
"2.0" | "2.1" | "2.2" | "2.3" | "2.4" | "2.5" | "2.6" | "2.7" | "2.8" | "2.9" | "3.0" | "3.1" | "3.2";
|
||||
"2.0" | "2.1" | "2.2" | "2.3" | "2.4" | "2.5" | "2.6" | "2.7" | "2.8" | "2.9" | "3.0" | "3.1" | "3.2" | "3.3";
|
||||
export namespace TypeScriptVersion {
|
||||
export const all: ReadonlyArray<TypeScriptVersion> =
|
||||
["2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "2.8", "2.9", "3.0", "3.1", "3.2"];
|
||||
["2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "2.8", "2.9", "3.0", "3.1", "3.2", "3.3"];
|
||||
export const lowest = all[0];
|
||||
/** Latest version that may be specified in a `// TypeScript Version:` header. */
|
||||
export const latest = all[all.length - 1];
|
||||
|
@ -43,6 +43,7 @@ export namespace TypeScriptVersion {
|
|||
"ts3.0",
|
||||
"ts3.1",
|
||||
"ts3.2",
|
||||
"ts3.3",
|
||||
"latest",
|
||||
];
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче