Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Commit

Permalink
New: Support TypeScript 2.5 (fixes #368) (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
azz authored and JamesHenry committed Aug 20, 2017
1 parent d67ee6c commit c7a5714
Show file tree
Hide file tree
Showing 5 changed files with 485 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ module.exports = function convert(config) {
case SyntaxKind.CatchClause:
Object.assign(result, {
type: AST_NODE_TYPES.CatchClause,
param: convertChild(node.variableDeclaration.name),
param: node.variableDeclaration ? convertChild(node.variableDeclaration.name) : null,
body: convertChild(node.block)
});
break;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"npm-license": "0.3.3",
"shelljs": "0.7.7",
"shelljs-nodecli": "0.1.1",
"typescript": "~2.4.0"
"typescript": "~2.5.1"
},
"keywords": [
"ast",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
try {} catch {} finally {}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
try {} catch {}
Loading

0 comments on commit c7a5714

Please sign in to comment.