Merge pull request #11447 from Microsoft/visit_module_block

Fix tslint build
This commit is contained in:
Andy 2016-10-07 08:35:02 -07:00 committed by GitHub
commit 49a6391b4f

View File

@ -126,7 +126,7 @@ class PreferConstWalker extends Lint.RuleWalker {
visitModuleDeclaration(node: ts.ModuleDeclaration) {
if (node.body.kind === ts.SyntaxKind.ModuleBlock) {
// For some reason module blocks are left out of the visit block traversal
this.visitBlock(node.body as ts.ModuleBlock);
this.visitBlock(node.body as any as ts.Block);
}
super.visitModuleDeclaration(node);
}