Skip to content

Commit f82c568

Browse files
committed
Support TS 5.9
1 parent 1f6e243 commit f82c568

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

.changeset/little-pugs-lick.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@definitelytyped/typescript-packages": patch
3+
"@definitelytyped/typescript-versions": patch
4+
---
5+
6+
Support TS 5.9

packages/typescript-packages/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"typescript-5.5": "npm:typescript@~5.5.0-0",
3131
"typescript-5.6": "npm:typescript@~5.6.0-0",
3232
"typescript-5.7": "npm:typescript@~5.7.0-0",
33-
"typescript-5.8": "npm:typescript@~5.8.0-0"
33+
"typescript-5.8": "npm:typescript@~5.8.0-0",
34+
"typescript-5.9": "npm:typescript@~5.9.0-0"
3435
}
3536
}

packages/typescript-versions/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export namespace TypeScriptVersion {
4343
/** Add to this list when a version actually ships. */
4444
export const shipped = ["5.0", "5.1", "5.2", "5.3", "5.4", "5.5", "5.6", "5.7"] as const;
4545
/** Add to this list when a version is available as typescript@next */
46-
export const supported = [...shipped, "5.8"] as const;
46+
export const supported = [...shipped, "5.8", "5.9"] as const;
4747
/** Add to this list when it will no longer be supported on Definitely Typed */
4848
export const unsupported = [
4949
"2.0",

packages/typescript-versions/test/index.test.ts

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

4343
describe("range", () => {
4444
it("works", () => {
45-
expect(TypeScriptVersion.range("5.1")).toEqual(["5.1", "5.2", "5.3", "5.4", "5.5", "5.6", "5.7", "5.8"]);
45+
expect(TypeScriptVersion.range("5.1")).toEqual(["5.1", "5.2", "5.3", "5.4", "5.5", "5.6", "5.7", "5.8", "5.9"]);
4646
});
4747
it("includes 5.0 onwards", () => {
4848
expect(TypeScriptVersion.range("5.0")).toEqual(TypeScriptVersion.supported);
@@ -60,6 +60,7 @@ describe("tagsToUpdate", () => {
6060
"ts5.6",
6161
"ts5.7",
6262
"ts5.8",
63+
"ts5.9",
6364
"latest",
6465
]);
6566
});

pnpm-lock.yaml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)