@definitelytyped/typescript-versions
Advanced tools
Comparing version 0.0.131 to 0.0.132-next.0
@@ -25,4 +25,5 @@ /** Parseable but unsupported TypeScript versions. */ | ||
function previous(v: TypeScriptVersion): TypeScriptVersion | undefined; | ||
function next(v: TypeScriptVersion): TypeScriptVersion | undefined; | ||
function isRedirectable(v: TypeScriptVersion): boolean; | ||
function isTypeScriptVersion(str: string): str is TypeScriptVersion; | ||
} |
@@ -66,2 +66,8 @@ "use strict"; | ||
TypeScriptVersion.previous = previous; | ||
function next(v) { | ||
const index = TypeScriptVersion.supported.indexOf(v); | ||
(0, assert_1.default)(index !== -1); | ||
return index === TypeScriptVersion.supported.length - 1 ? undefined : TypeScriptVersion.supported[index + 1]; | ||
} | ||
TypeScriptVersion.next = next; | ||
function isRedirectable(v) { | ||
@@ -68,0 +74,0 @@ return TypeScriptVersion.all.indexOf(v) >= TypeScriptVersion.all.indexOf("3.1"); |
{ | ||
"name": "@definitelytyped/typescript-versions", | ||
"version": "0.0.131", | ||
"version": "0.0.132-next.0", | ||
"description": "List of supported TypeScript versions", | ||
@@ -20,3 +20,3 @@ "author": "Andrew Branch <andrew@wheream.io>", | ||
}, | ||
"gitHead": "cacfc21aef946b7f00d88c4ccded1b22256aae13" | ||
"gitHead": "b7bd52abf7cd346baa74e50ef7b6263285d9119d" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9230
108