feat: implement default url serializer

This commit is contained in:
vsavkin
2016-05-21 17:35:55 -07:00
parent aee764d14d
commit 4b1db0e61c
4 changed files with 359 additions and 5 deletions

View File

@ -0,0 +1,11 @@
import { Tree, TreeNode } from './tree';
export class UrlTree extends Tree<UrlSegment> {
constructor(root: TreeNode<UrlSegment>, public queryParameters: {[key: string]: string}, public fragment: string | null) {
super(root);
}
}
export class UrlSegment {
constructor(public segment: any, public parameters: {[key: string]: string}) {}
}