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