fix(router): relax nullability requirements

This commit is contained in:
Miško Hevery 2017-04-14 16:01:48 -07:00 committed by Tobias Bosch
parent 57bc245cb4
commit a0d124bd91

View File

@ -78,7 +78,7 @@ export interface NavigationExtras {
* } * }
* ``` * ```
*/ */
relativeTo?: ActivatedRoute; relativeTo?: ActivatedRoute|null;
/** /**
* Sets query parameters to the URL. * Sets query parameters to the URL.
@ -88,7 +88,7 @@ export interface NavigationExtras {
* this.router.navigate(['/results'], { queryParams: { page: 1 } }); * this.router.navigate(['/results'], { queryParams: { page: 1 } });
* ``` * ```
*/ */
queryParams?: Params; queryParams?: Params|null;
/** /**
* Sets the hash fragment for the URL. * Sets the hash fragment for the URL.
@ -122,7 +122,7 @@ export interface NavigationExtras {
* this.router.navigate(['/view'], { queryParams: { page: 2 }, queryParamsHandling: "merge" }); * this.router.navigate(['/view'], { queryParams: { page: 2 }, queryParamsHandling: "merge" });
* ``` * ```
*/ */
queryParamsHandling?: QueryParamsHandling; queryParamsHandling?: QueryParamsHandling|null;
/** /**
* Preserves the fragment for the next navigation * Preserves the fragment for the next navigation
* *