This commit is contained in:
TypeScript Bot
2022-11-23 00:08:29 +00:00
parent 06fc7eea66
commit e74d415074
2 changed files with 13 additions and 2 deletions

View File

@@ -169,7 +169,18 @@ describe("isTypeScriptVersion", () => {
describe("range", () => {
it("works", () => {
expect(TypeScriptVersion.range("4.1")).toEqual(["4.1", "4.2", "4.3", "4.4", "4.5", "4.6", "4.7", "4.8", "4.9", "5.0"]);
expect(TypeScriptVersion.range("4.1")).toEqual([
"4.1",
"4.2",
"4.3",
"4.4",
"4.5",
"4.6",
"4.7",
"4.8",
"4.9",
"5.0",
]);
});
it.skip("includes 4.2 onwards", () => {
expect(TypeScriptVersion.range("4.2")).toEqual(TypeScriptVersion.supported);

View File

@@ -49,7 +49,7 @@ export type UnsupportedTypeScriptVersion =
| "3.7"
| "3.8"
| "3.9"
| "4.0"
| "4.0";
/**
* Parseable and supported TypeScript versions.
* Only add to this list if we will support this version on Definitely Typed.