Skip to content

Commit

Permalink
fix(core): resolve ts compile issues due to lenient tsconfig
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
IgorMinar committed Apr 11, 2019
1 parent 91c7b45 commit 4bf917b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/core/schematics/tsconfig.json
@@ -1,7 +1,10 @@
{
"compilerOptions": {
"strictNullChecks": true,
"noImplicitReturns": true,
"noImplicitAny": true,
"noFallthroughCasesInSwitch": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"lib": ["es2015"],
"types": [],
"baseUrl": ".",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/schematics/utils/typescript/visit_nodes.ts
Expand Up @@ -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));
Expand Down

0 comments on commit 4bf917b

Please sign in to comment.