Skip to content

Commit c3c2ad1

Browse files
committed
fix: improve type of TreeNode.children.
1 parent c51aef9 commit c3c2ad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/src/core/compiler/element_injector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export class TreeNode<T extends TreeNode<any>> {
150150
get parent() { return this._parent; }
151151

152152
// TODO(rado): replace with a function call, does too much work for a getter.
153-
get children(): TreeNode<any>[] {
153+
get children(): T[] {
154154
var res = [];
155155
var child = this._head;
156156
while (child != null) {

0 commit comments

Comments
 (0)