fix: improve type of TreeNode.children.
This commit is contained in:
parent
c51aef9f7d
commit
c3c2ad1454
|
@ -150,7 +150,7 @@ export class TreeNode<T extends TreeNode<any>> {
|
||||||
get parent() { return this._parent; }
|
get parent() { return this._parent; }
|
||||||
|
|
||||||
// TODO(rado): replace with a function call, does too much work for a getter.
|
// TODO(rado): replace with a function call, does too much work for a getter.
|
||||||
get children(): TreeNode<any>[] {
|
get children(): T[] {
|
||||||
var res = [];
|
var res = [];
|
||||||
var child = this._head;
|
var child = this._head;
|
||||||
while (child != null) {
|
while (child != null) {
|
||||||
|
|
Loading…
Reference in New Issue