Skip to content

Commit efd4149

Browse files
josephperrottalxhub
authored andcommitted
fix(elements): update type castings for JSON.parse usage (#40710)
Update usages of JSON.parse to be cast as specific types. PR Close #40710
1 parent 4b469c9 commit efd4149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/elements/schematics/ng-add/index_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('Elements Schematics', () => {
5858
const tree =
5959
await schematicRunner.runSchematicAsync('ng-add', defaultOptions, appTree).toPromise();
6060
const pkgJsonText = tree.readContent('/package.json');
61-
const pkgJson = JSON.parse(pkgJsonText);
61+
const pkgJson = JSON.parse(pkgJsonText) as {dependencies: any};
6262
const {dependencies} = pkgJson;
6363
expect(dependencies['document-register-element']).toBeDefined();
6464
});

0 commit comments

Comments
 (0)