diff --git a/goldens/public-api/router/router.d.ts b/goldens/public-api/router/router.d.ts index 8734cd842a..73cb56deb0 100644 --- a/goldens/public-api/router/router.d.ts +++ b/goldens/public-api/router/router.d.ts @@ -341,7 +341,7 @@ export declare class Router { urlHandlingStrategy: UrlHandlingStrategy; urlUpdateStrategy: 'deferred' | 'eager'; constructor(rootComponentType: Type | null, urlSerializer: UrlSerializer, rootContexts: ChildrenOutletContexts, location: Location, injector: Injector, loader: NgModuleFactoryLoader, compiler: Compiler, config: Routes); - createUrlTree(commands: any[], navigationExtras?: NavigationExtras): UrlTree; + createUrlTree(commands: any[], navigationExtras?: UrlCreationOptions): UrlTree; dispose(): void; getCurrentNavigation(): Navigation | null; initialNavigation(): void; diff --git a/packages/router/src/router.ts b/packages/router/src/router.ts index 11d99bbca6..f560d20dcf 100644 --- a/packages/router/src/router.ts +++ b/packages/router/src/router.ts @@ -1096,7 +1096,7 @@ export class Router { * router.createUrlTree(['../../team/44/user/22'], {relativeTo: route}); * ``` */ - createUrlTree(commands: any[], navigationExtras: NavigationExtras = {}): UrlTree { + createUrlTree(commands: any[], navigationExtras: UrlCreationOptions = {}): UrlTree { const {relativeTo, queryParams, fragment, queryParamsHandling, preserveFragment} = navigationExtras; const a = relativeTo || this.routerState.root;