@definitelytyped/typescript-versions
Advanced tools
Comparing version 0.0.183 to 0.0.184
# @definitelytyped/typescript-versions | ||
## 0.0.184 | ||
### Patch Changes | ||
- 4522dfba: Improve types of versions | ||
## 0.0.183 | ||
@@ -4,0 +10,0 @@ |
/** Parseable but unsupported TypeScript versions. */ | ||
export type UnsupportedTypeScriptVersion = "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" | "3.4" | "3.5" | "3.6" | "3.7" | "3.8" | "3.9" | "4.0" | "4.1" | "4.2" | "4.3" | "4.4" | "4.5"; | ||
export type UnsupportedTypeScriptVersion = (typeof TypeScriptVersion.unsupported)[number]; | ||
/** | ||
@@ -7,15 +7,15 @@ * Parseable and supported TypeScript versions. | ||
*/ | ||
export type TypeScriptVersion = "4.6" | "4.7" | "4.8" | "4.9" | "5.0" | "5.1" | "5.2" | "5.3" | "5.4"; | ||
export type TypeScriptVersion = (typeof TypeScriptVersion.supported)[number]; | ||
export type AllTypeScriptVersion = UnsupportedTypeScriptVersion | TypeScriptVersion; | ||
export declare namespace TypeScriptVersion { | ||
/** Add to this list when a version actually ships. */ | ||
const shipped: readonly TypeScriptVersion[]; | ||
const shipped: readonly ["4.6", "4.7", "4.8", "4.9", "5.0", "5.1", "5.2", "5.3"]; | ||
/** Add to this list when a version is available as typescript@next */ | ||
const supported: readonly TypeScriptVersion[]; | ||
const supported: readonly ["4.6", "4.7", "4.8", "4.9", "5.0", "5.1", "5.2", "5.3", "5.4"]; | ||
/** Add to this list when it will no longer be supported on Definitely Typed */ | ||
const unsupported: readonly UnsupportedTypeScriptVersion[]; | ||
const unsupported: readonly ["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", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "4.0", "4.1", "4.2", "4.3", "4.4", "4.5"]; | ||
const all: readonly AllTypeScriptVersion[]; | ||
const lowest: TypeScriptVersion; | ||
const lowest: "4.6"; | ||
/** Latest version that may be specified in a `// TypeScript Version:` header. */ | ||
const latest: TypeScriptVersion; | ||
const latest: "4.6" | "4.7" | "4.8" | "4.9" | "5.0" | "5.1" | "5.2" | "5.3" | "5.4"; | ||
function isSupported(v: AllTypeScriptVersion): v is TypeScriptVersion; | ||
@@ -22,0 +22,0 @@ function range(min: TypeScriptVersion): readonly TypeScriptVersion[]; |
{ | ||
"name": "@definitelytyped/typescript-versions", | ||
"version": "0.0.183", | ||
"version": "0.0.184", | ||
"description": "List of supported TypeScript versions", | ||
@@ -5,0 +5,0 @@ "author": "Andrew Branch <andrew@wheream.io>", |
Sorry, the diff of this file is not supported yet
9906