feat(router): provide meaningful toString impls

This commit is contained in:
vsavkin
2016-06-09 14:11:54 -07:00
parent fdfbbd5bac
commit 05eebe0fed
3 changed files with 35 additions and 10 deletions

View File

@ -70,4 +70,8 @@ function contains<T>(tree: TreeNode<T>, subtree: TreeNode<T>): boolean {
export class TreeNode<T> {
constructor(public value: T, public children: TreeNode<T>[]) {}
toString(): string {
return `TreeNode(${this.value})`;
}
}