@@ -67,8 +67,11 @@ function addDeclarationToNgModule(options: ComponentOptions): Rule {
67
67
const relativePath = buildRelativePath ( modulePath , componentPath ) ;
68
68
const classifiedName = strings . classify ( `${ options . name } Component` ) ;
69
69
70
+ // TODO(devversion): Cast to any because the Bazel typescript rules seem to incorrectly resolve
71
+ // the the required TypeScript version for the @schematics /angular utility functions. Meaning
72
+ // that is a type signature mismatch at compilation which is not valid.
70
73
const declarationChanges = addDeclarationToModule (
71
- source ,
74
+ source as any ,
72
75
modulePath ,
73
76
classifiedName ,
74
77
relativePath ) ;
@@ -86,7 +89,12 @@ function addDeclarationToNgModule(options: ComponentOptions): Rule {
86
89
const source = readIntoSourceFile ( host , modulePath ) ;
87
90
const exportRecorder = host . beginUpdate ( modulePath ) ;
88
91
89
- const exportChanges = addExportToModule ( source , modulePath ,
92
+ // TODO(devversion): Cast to any because the Bazel typescript rules seem to incorrectly resolve
93
+ // the the required TypeScript version for the @schematics /angular utility functions. Meaning
94
+ // that is a type signature mismatch at compilation which is not valid.
95
+ const exportChanges = addExportToModule (
96
+ source as any ,
97
+ modulePath ,
90
98
strings . classify ( `${ options . name } Component` ) ,
91
99
relativePath ) ;
92
100
@@ -103,8 +111,11 @@ function addDeclarationToNgModule(options: ComponentOptions): Rule {
103
111
const source = readIntoSourceFile ( host , modulePath ) ;
104
112
const entryComponentRecorder = host . beginUpdate ( modulePath ) ;
105
113
114
+ // TODO(devversion): Cast to any because the Bazel typescript rules seem to incorrectly resolve
115
+ // the the required TypeScript version for the @schematics /angular utility functions. Meaning
116
+ // that is a type signature mismatch at compilation which is not valid.
106
117
const entryComponentChanges = addEntryComponentToModule (
107
- source ,
118
+ source as any ,
108
119
modulePath ,
109
120
strings . classify ( `${ options . name } Component` ) ,
110
121
relativePath ) ;
0 commit comments