From a0d124bd91ef189d94783de5faa8879dc5901307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=A1ko=20Hevery?= Date: Fri, 14 Apr 2017 16:01:48 -0700 Subject: [PATCH] fix(router): relax nullability requirements --- packages/router/src/router.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/router/src/router.ts b/packages/router/src/router.ts index 4414600ab6..bca264097f 100644 --- a/packages/router/src/router.ts +++ b/packages/router/src/router.ts @@ -78,7 +78,7 @@ export interface NavigationExtras { * } * ``` */ - relativeTo?: ActivatedRoute; + relativeTo?: ActivatedRoute|null; /** * Sets query parameters to the URL. @@ -88,7 +88,7 @@ export interface NavigationExtras { * this.router.navigate(['/results'], { queryParams: { page: 1 } }); * ``` */ - queryParams?: Params; + queryParams?: Params|null; /** * Sets the hash fragment for the URL. @@ -122,7 +122,7 @@ export interface NavigationExtras { * this.router.navigate(['/view'], { queryParams: { page: 2 }, queryParamsHandling: "merge" }); * ``` */ - queryParamsHandling?: QueryParamsHandling; + queryParamsHandling?: QueryParamsHandling|null; /** * Preserves the fragment for the next navigation *