We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9c0d6b2 + 731ce34 commit 49a6391Copy full SHA for 49a6391
scripts/tslint/preferConstRule.ts
@@ -126,7 +126,7 @@ class PreferConstWalker extends Lint.RuleWalker {
126
visitModuleDeclaration(node: ts.ModuleDeclaration) {
127
if (node.body.kind === ts.SyntaxKind.ModuleBlock) {
128
// For some reason module blocks are left out of the visit block traversal
129
- this.visitBlock(node.body as ts.ModuleBlock);
+ this.visitBlock(node.body as any as ts.Block);
130
}
131
super.visitModuleDeclaration(node);
132
0 commit comments