Skip to content

Commit 161b278

Browse files
crisbetoAndrewKushnir
authored andcommitted
fix(router): incorrect signature for createUrlTree (#39347)
The type of the `navigationExtras` param was accidetally changed to the wrong symbol in 783a5bd. These changes revert it to the correct one. PR Close #39347
1 parent 3738233 commit 161b278

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

goldens/public-api/router/router.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export declare class Router {
341341
urlHandlingStrategy: UrlHandlingStrategy;
342342
urlUpdateStrategy: 'deferred' | 'eager';
343343
constructor(rootComponentType: Type<any> | null, urlSerializer: UrlSerializer, rootContexts: ChildrenOutletContexts, location: Location, injector: Injector, loader: NgModuleFactoryLoader, compiler: Compiler, config: Routes);
344-
createUrlTree(commands: any[], navigationExtras?: NavigationExtras): UrlTree;
344+
createUrlTree(commands: any[], navigationExtras?: UrlCreationOptions): UrlTree;
345345
dispose(): void;
346346
getCurrentNavigation(): Navigation | null;
347347
initialNavigation(): void;

packages/router/src/router.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ export class Router {
10961096
* router.createUrlTree(['../../team/44/user/22'], {relativeTo: route});
10971097
* ```
10981098
*/
1099-
createUrlTree(commands: any[], navigationExtras: NavigationExtras = {}): UrlTree {
1099+
createUrlTree(commands: any[], navigationExtras: UrlCreationOptions = {}): UrlTree {
11001100
const {relativeTo, queryParams, fragment, queryParamsHandling, preserveFragment} =
11011101
navigationExtras;
11021102
const a = relativeTo || this.routerState.root;

0 commit comments

Comments
 (0)