File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -516,7 +516,9 @@ import { useStore } from "../store/main.js";
516
516
import { ref , computed , onMounted , watch } from " vue" ;
517
517
import * as fs from " fs" ;
518
518
import { ResizePayload , Component } from " ../../types" ;
519
- const { ipcRenderer } = window ;
519
+ // @ts-ignore
520
+ // const { ipcRenderer } = window;
521
+ // ipcRenderer is not used
520
522
521
523
const cloneDeep = require (" lodash.clonedeep" );
522
524
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import VueTree from "@ssthouse/vue3-tree-chart";
36
36
import " @ssthouse/vue3-tree-chart/dist/vue3-tree-chart.css" ;
37
37
import { useStore } from " ../../store/main.js" ;
38
38
import { ref , computed , watch } from " vue" ;
39
+ import { Component , RouteComponentMap } from " ../../../types" ;
39
40
40
41
const store = useStore ();
41
42
@@ -118,7 +119,7 @@ const activateNode = (nodeToActivate: string) => {
118
119
119
120
const buildTree = (componentData : typeof VueTree .treeData ) => {
120
121
// App is always the root of the tree.
121
- const treeData = {
122
+ const treeData : {value : string ; children : {value : string ; children : string []}[]} = {
122
123
value: " App" ,
123
124
children: [],
124
125
};
@@ -152,7 +153,7 @@ function buildTreeChildren(array: string[]) {
152
153
}
153
154
}
154
155
}
155
- outputArray .push (outputObj );
156
+ ( outputArray as { value : string ; children : string []}[]) .push (outputObj );
156
157
});
157
158
return outputArray ;
158
159
}
You can’t perform that action at this time.
0 commit comments