Skip to content

Commit c1b9af3

Browse files
yharaskrikDominikPieper
authored andcommitted
chore(in-memory-db): switch up type coercion
1 parent 70576aa commit c1b9af3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/in-memory-db/src/schematics/utils/ast-utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* Use of this source code is governed by an MIT-style license that can be
77
* found in the LICENSE file at https://angular.io/license
88
*/
9-
import { ImportClause } from 'typescript';
109
import * as ts from 'typescript';
1110
import { Change, InsertChange, NoopChange } from './change';
1211

@@ -516,7 +515,7 @@ export function addSymbolToNgModuleMetadata(
516515
}
517516

518517
if (Array.isArray(node)) {
519-
const nodeArray = (node as {}) as Array<ts.Node>;
518+
const nodeArray = (node as unknown) as Array<ts.Node>;
520519
const symbolsArray = nodeArray.map((node) => node.getText());
521520
if (symbolsArray.includes(symbolName)) {
522521
return [];

0 commit comments

Comments
 (0)