diff --git a/packages/header-parser/test/index.test.ts b/packages/header-parser/test/index.test.ts index 8f11edff82..25bac7f6f3 100644 --- a/packages/header-parser/test/index.test.ts +++ b/packages/header-parser/test/index.test.ts @@ -169,7 +169,7 @@ describe("isTypeScriptVersion", () => { describe("range", () => { it("works", () => { - expect(TypeScriptVersion.range("4.7")).toEqual(["4.7", "4.8", "4.9", "5.0", "5.1"]); + expect(TypeScriptVersion.range("4.7")).toEqual(["4.7", "4.8", "4.9", "5.0", "5.1", "5.2"]); }); it("includes 4.3 onwards", () => { expect(TypeScriptVersion.range("4.3")).toEqual(TypeScriptVersion.supported); @@ -178,7 +178,7 @@ describe("range", () => { describe("tagsToUpdate", () => { it("works", () => { - expect(TypeScriptVersion.tagsToUpdate("5.0")).toEqual(["ts5.0", "ts5.1", "latest"]); + expect(TypeScriptVersion.tagsToUpdate("5.0")).toEqual(["ts5.0", "ts5.1", "ts5.2", "latest"]); }); it("allows 4.2 onwards", () => { expect(TypeScriptVersion.tagsToUpdate("4.3")).toEqual( diff --git a/packages/typescript-versions/src/index.ts b/packages/typescript-versions/src/index.ts index 307fb39bd8..434204b37e 100644 --- a/packages/typescript-versions/src/index.ts +++ b/packages/typescript-versions/src/index.ts @@ -56,7 +56,7 @@ export type UnsupportedTypeScriptVersion = * Parseable and supported TypeScript versions. * Only add to this list if we will support this version on Definitely Typed. */ -export type TypeScriptVersion = "4.3" | "4.4" | "4.5" | "4.6" | "4.7" | "4.8" | "4.9" | "5.0" | "5.1"; +export type TypeScriptVersion = "4.3" | "4.4" | "4.5" | "4.6" | "4.7" | "4.8" | "4.9" | "5.0" | "5.1" | "5.2"; export type AllTypeScriptVersion = UnsupportedTypeScriptVersion | TypeScriptVersion; @@ -64,7 +64,7 @@ export namespace TypeScriptVersion { /** Add to this list when a version actually ships. */ export const shipped: readonly TypeScriptVersion[] = ["4.3", "4.4", "4.5", "4.6", "4.7", "4.8", "4.9", "5.0"]; /** Add to this list when a version is available as typescript@next */ - export const supported: readonly TypeScriptVersion[] = [...shipped, "5.1"]; + export const supported: readonly TypeScriptVersion[] = [...shipped, "5.1", "5.2"]; /** Add to this list when it will no longer be supported on Definitely Typed */ export const unsupported: readonly UnsupportedTypeScriptVersion[] = [ "2.0",