Skip to content

Commit d2f7764

Browse files
author
Kanchalai Tanglertsampan
committed
Port Andy's fix in
1 parent 17ecfe5 commit d2f7764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/tslint/preferConstRule.ts

Lines changed: 1 addition & 1 deletion
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)