@@ -18,7 +18,6 @@ import { setConsoleReference } from './selected-component';
18
18
import { unHighlight } from './highlighter' ;
19
19
import { getAngularVersion , appIsAngularInDevMode , appIsSupportedAngularVersion } from './angular-check' ;
20
20
import { observeDOM , getDirectiveId , getDirectiveForest , indexDirectiveForest } from './component-tree-identifiers' ;
21
- import { IndexedNode } from './observer/identity-tracker' ;
22
21
23
22
export const subscribeToClientEvents = ( messageBus : MessageBus < Events > ) : void => {
24
23
messageBus . on ( 'shutdown' , shutdownCallback ( messageBus ) ) ;
@@ -166,7 +165,7 @@ export interface SerializableComponentTreeNode
166
165
// We don't need the component instance, so we just traverse the tree
167
166
// and leave the component name.
168
167
export const prepareForestForSerialization = ( roots : ComponentTreeNode [ ] ) : SerializableComponentTreeNode [ ] => {
169
- return roots . map ( node => {
168
+ return roots . map ( ( node ) => {
170
169
return {
171
170
element : node . element ,
172
171
component : node . component
@@ -176,7 +175,7 @@ export const prepareForestForSerialization = (roots: ComponentTreeNode[]): Seria
176
175
id : getDirectiveId ( node . component . instance ) ,
177
176
}
178
177
: null ,
179
- directives : node . directives . map ( d => ( { name : d . name , id : getDirectiveId ( d . instance ) } ) ) ,
178
+ directives : node . directives . map ( ( d ) => ( { name : d . name , id : getDirectiveId ( d . instance ) } ) ) ,
180
179
children : prepareForestForSerialization ( node . children ) ,
181
180
} as SerializableComponentTreeNode ;
182
181
} ) ;
0 commit comments