13 lines
199 B
TypeScript
13 lines
199 B
TypeScript
|
type TreeNode = {
|
||
|
name: string;
|
||
|
parent: TreeNode;
|
||
|
}
|
||
|
|
||
|
type TreeNodeMiddleman = {
|
||
|
name: string;
|
||
|
parent: TreeNode;
|
||
|
}
|
||
|
|
||
|
var nodes: TreeNodeMiddleman[];
|
||
|
nodes.map(n => n.name);
|