From d57b7efbc6c0b338884ad5228698c684f6424d1d Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Thu, 11 May 2017 07:47:59 -0700 Subject: [PATCH] Support TypeScript 2.3 --- src/rules/definitelytyped-header-parser.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/rules/definitelytyped-header-parser.ts b/src/rules/definitelytyped-header-parser.ts index 052292a5..e7a2ee49 100644 --- a/src/rules/definitelytyped-header-parser.ts +++ b/src/rules/definitelytyped-header-parser.ts @@ -3,11 +3,11 @@ import pm = require("parsimmon"); // Code copied from definitelytyped-header-parser // Remove when that is published to NPM -export type TypeScriptVersion = "2.0" | "2.1" | "2.2"; +export type TypeScriptVersion = "2.0" | "2.1" | "2.2" | "2.3"; export namespace TypeScriptVersion { - export const all: TypeScriptVersion[] = ["2.0", "2.1", "2.2"]; + export const all: TypeScriptVersion[] = ["2.0", "2.1", "2.2", "2.3"]; /** Latest version that may be specified in a `// TypeScript Version:` header. */ - export const latest = "2.2"; + export const latest = "2.3"; } interface Header { @@ -167,6 +167,8 @@ const typeScriptVersionLineParser: pm.Parser = return pm.succeed("2.1"); case "2": return pm.succeed("2.2"); + case "3": + return pm.succeed("2.3"); default: return pm.fail(`TypeScript 2.${d} is not yet supported.`); }