File tree 2 files changed +3
-3
lines changed
packages/angular_devkit/core/src
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ export class CoreSchemaRegistry implements SchemaRegistry {
156
156
} ) ;
157
157
res . on ( 'end' , ( ) => {
158
158
try {
159
- const json = JSON . parse ( data ) ;
159
+ const json = JSON . parse ( data ) as JsonObject ;
160
160
this . _uriCache . set ( uri , json ) ;
161
161
resolve ( json ) ;
162
162
} catch ( err ) {
@@ -630,7 +630,7 @@ export class CoreSchemaRegistry implements SchemaRegistry {
630
630
smartDefaults : Map < string , JsonObject > ,
631
631
) : Promise < void > {
632
632
for ( const [ pointer , schema ] of smartDefaults . entries ( ) ) {
633
- const fragments = JSON . parse ( pointer ) ;
633
+ const fragments = JSON . parse ( pointer ) as string [ ] ;
634
634
const source = this . _sourceMap . get ( schema . $source as string ) ;
635
635
if ( ! source ) {
636
636
continue ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export function deepCopy<T>(value: T): T {
25
25
}
26
26
27
27
if ( valueCasted [ 'toJSON' ] ) {
28
- return JSON . parse ( valueCasted [ 'toJSON' ] ( ) ) ;
28
+ return JSON . parse ( valueCasted [ 'toJSON' ] ( ) ) as T ;
29
29
}
30
30
31
31
const copy = Object . create ( Object . getPrototypeOf ( valueCasted ) ) ;
You can’t perform that action at this time.
0 commit comments