fix: improve type of TreeNode.children.

This commit is contained in:
Martin Probst 2015-06-12 15:49:04 -07:00
parent c51aef9f7d
commit c3c2ad1454
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ export class TreeNode<T extends TreeNode<any>> {
get parent() { return this._parent; }
// TODO(rado): replace with a function call, does too much work for a getter.
get children(): TreeNode<any>[] {
get children(): T[] {
var res = [];
var child = this._head;
while (child != null) {