mirror of
https://github.com/chenasraf/DefinitelyTyped-tools.git
synced 2026-05-18 01:49:03 +00:00
Add TS 4.4 as typescript@next (#250)
This commit is contained in:
committed by
GitHub
parent
b732920cfe
commit
28a4edef89
@@ -169,7 +169,7 @@ describe("isTypeScriptVersion", () => {
|
||||
|
||||
describe("range", () => {
|
||||
it("works", () => {
|
||||
expect(TypeScriptVersion.range("3.7")).toEqual(["3.7", "3.8", "3.9", "4.0", "4.1", "4.2", "4.3"]);
|
||||
expect(TypeScriptVersion.range("3.7")).toEqual(["3.7", "3.8", "3.9", "4.0", "4.1", "4.2", "4.3", "4.4"]);
|
||||
});
|
||||
it("includes 3.5 onwards", () => {
|
||||
expect(TypeScriptVersion.range("3.5")).toEqual(TypeScriptVersion.supported);
|
||||
@@ -178,7 +178,7 @@ describe("range", () => {
|
||||
|
||||
describe("tagsToUpdate", () => {
|
||||
it("works", () => {
|
||||
expect(TypeScriptVersion.tagsToUpdate("3.9")).toEqual(["ts3.9", "ts4.0", "ts4.1", "ts4.2", "ts4.3", "latest"]);
|
||||
expect(TypeScriptVersion.tagsToUpdate("3.9")).toEqual(["ts3.9", "ts4.0", "ts4.1", "ts4.2", "ts4.3", "ts4.4", "latest"]);
|
||||
});
|
||||
it("allows 3.5 onwards", () => {
|
||||
expect(TypeScriptVersion.tagsToUpdate("3.5")).toEqual(
|
||||
|
||||
@@ -46,7 +46,7 @@ export type UnsupportedTypeScriptVersion =
|
||||
* Parseable and supported TypeScript versions.
|
||||
* Only add to this list if we will support this version on DefinitelyTyped.
|
||||
*/
|
||||
export type TypeScriptVersion = "3.5" | "3.6" | "3.7" | "3.8" | "3.9" | "4.0" | "4.1" | "4.2" | "4.3";
|
||||
export type TypeScriptVersion = "3.5" | "3.6" | "3.7" | "3.8" | "3.9" | "4.0" | "4.1" | "4.2" | "4.3" | "4.4";
|
||||
|
||||
export type AllTypeScriptVersion = UnsupportedTypeScriptVersion | TypeScriptVersion;
|
||||
|
||||
@@ -54,7 +54,7 @@ export namespace TypeScriptVersion {
|
||||
/** Add to this list when a version actual ships. */
|
||||
export const shipped: readonly TypeScriptVersion[] = ["3.5", "3.6", "3.7", "3.8", "3.9", "4.0", "4.1", "4.2"];
|
||||
/** Add to this list when a version is available as typescript@next */
|
||||
export const supported: readonly TypeScriptVersion[] = [...shipped, "4.3"];
|
||||
export const supported: readonly TypeScriptVersion[] = [...shipped, "4.3", "4.4"];
|
||||
/** Add to this list when it will no longer be supported on Definitely Typed */
|
||||
export const unsupported: readonly UnsupportedTypeScriptVersion[] = [
|
||||
"2.0",
|
||||
|
||||
Reference in New Issue
Block a user