@@ -95,9 +95,9 @@ function _removeModuleId(refactor: TypeScriptFileRefactor) {
95
95
. filter ( ( node : ts . ObjectLiteralExpression ) =>
96
96
node . properties . some ( prop => prop . name . getText ( ) == 'moduleId' ) )
97
97
. forEach ( ( node : ts . ObjectLiteralExpression ) => {
98
- let isLastProp : boolean = false ;
98
+ let isLastProp = false ;
99
99
100
- let moduleIdProp = node . properties . filter ( ( prop : ts . ObjectLiteralElement , idx ) => {
100
+ let moduleIdProp = node . properties . filter ( ( prop : ts . ObjectLiteralElement , idx : number ) => {
101
101
const isModuleId = prop . name . getText ( ) == 'moduleId' ;
102
102
if ( isModuleId && idx == node . properties . length - 1 ) {
103
103
isLastProp = true ;
@@ -111,7 +111,8 @@ function _removeModuleId(refactor: TypeScriptFileRefactor) {
111
111
// // Find all object literals.
112
112
// refactor.findAstNodes(sourceFile, ts.SyntaxKind.ObjectLiteralExpression, true)
113
113
// // Get all their property assignments.
114
- // .map((node: ts.ObjectLiteralExpression) => refactor.findAstNodes(node, ts.SyntaxKind.PropertyAssignment))
114
+ // .map((node: ts.ObjectLiteralExpression) => refactor.findAstNodes(
115
+ // node, ts.SyntaxKind.PropertyAssignment))
115
116
// // Flatten into a single array (from an array of array<property assignments>).
116
117
// .reduce((prev, curr) => curr ? prev.concat(curr) : prev, [])
117
118
// // Remove every property assignment that aren't 'loadChildren'.
0 commit comments