Skip to content

Commit 3d432b2

Browse files
authored
Add TS4.8 to supported versions (#454)
For use after typescript's main branch switches to 4.8 at the start of the 4.7 RC period.
1 parent 89e82d0 commit 3d432b2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/header-parser/test/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ describe("isTypeScriptVersion", () => {
169169

170170
describe("range", () => {
171171
it("works", () => {
172-
expect(TypeScriptVersion.range("4.0")).toEqual(["4.0", "4.1", "4.2", "4.3", "4.4", "4.5", "4.6", "4.7"]);
172+
expect(TypeScriptVersion.range("4.0")).toEqual(["4.0", "4.1", "4.2", "4.3", "4.4", "4.5", "4.6", "4.7", "4.8"]);
173173
});
174174
it("includes 3.8 onwards", () => {
175175
expect(TypeScriptVersion.range("3.9")).toEqual(TypeScriptVersion.supported);
@@ -188,6 +188,7 @@ describe("tagsToUpdate", () => {
188188
"ts4.5",
189189
"ts4.6",
190190
"ts4.7",
191+
"ts4.8",
191192
"latest",
192193
]);
193194
});

packages/typescript-versions/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ export type UnsupportedTypeScriptVersion =
5050
* Parseable and supported TypeScript versions.
5151
* Only add to this list if we will support this version on DefinitelyTyped.
5252
*/
53-
export type TypeScriptVersion = "3.9" | "4.0" | "4.1" | "4.2" | "4.3" | "4.4" | "4.5" | "4.6" | "4.7";
53+
export type TypeScriptVersion = "3.9" | "4.0" | "4.1" | "4.2" | "4.3" | "4.4" | "4.5" | "4.6" | "4.7" | "4.8";
5454

5555
export type AllTypeScriptVersion = UnsupportedTypeScriptVersion | TypeScriptVersion;
5656

5757
export namespace TypeScriptVersion {
5858
/** Add to this list when a version actually ships. */
5959
export const shipped: readonly TypeScriptVersion[] = ["3.9", "4.0", "4.1", "4.2", "4.3", "4.4", "4.5", "4.6"];
6060
/** Add to this list when a version is available as typescript@next */
61-
export const supported: readonly TypeScriptVersion[] = [...shipped, "4.7"];
61+
export const supported: readonly TypeScriptVersion[] = [...shipped, "4.7", "4.8"];
6262
/** Add to this list when it will no longer be supported on Definitely Typed */
6363
export const unsupported: readonly UnsupportedTypeScriptVersion[] = [
6464
"2.0",

0 commit comments

Comments
 (0)