Skip to content

Commit 49a6391

Browse files
author
Andy
authored
Merge pull request #11447 from Microsoft/visit_module_block
Fix tslint build
2 parents 9c0d6b2 + 731ce34 commit 49a6391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/tslint/preferConstRule.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class PreferConstWalker extends Lint.RuleWalker {
126126
visitModuleDeclaration(node: ts.ModuleDeclaration) {
127127
if (node.body.kind === ts.SyntaxKind.ModuleBlock) {
128128
// For some reason module blocks are left out of the visit block traversal
129-
this.visitBlock(node.body as ts.ModuleBlock);
129+
this.visitBlock(node.body as any as ts.Block);
130130
}
131131
super.visitModuleDeclaration(node);
132132
}

0 commit comments

Comments
 (0)