Skip to content
Permalink
Browse files

fix(core): resolve ts compile issues due to lenient tsconfig (#29843)

The code failed presubmit in google3 because the original ts config was not as strict
as the one used elsewhere in angular/angular and google3.

PR Close #29843
  • Loading branch information...
IgorMinar committed Apr 11, 2019
1 parent 91c7b45 commit 54058ba3a753aeaedcd4d3f81078afdfdc14a2c5
@@ -1,7 +1,10 @@
{
"compilerOptions": {
"strictNullChecks": true,
"noImplicitReturns": true,
"noImplicitAny": true,
"noFallthroughCasesInSwitch": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"lib": ["es2015"],
"types": [],
"baseUrl": ".",
@@ -8,7 +8,7 @@

import * as ts from 'typescript';

export interface TypeScriptVisitor { visitNode(node: ts.Node); }
export interface TypeScriptVisitor { visitNode(node: ts.Node): void; }

export function visitAllNodes(node: ts.Node, visitors: TypeScriptVisitor[]) {
visitors.forEach(v => v.visitNode(node));

0 comments on commit 54058ba

Please sign in to comment.
You can’t perform that action at this time.