fix(router): incorrect signature for createUrlTree (#39347)
The type of the `navigationExtras` param was accidetally changed to the wrong symbol
in 783a5bd7bb
.
These changes revert it to the correct one.
PR Close #39347
This commit is contained in:
parent
a7964f4eca
commit
9fb7bdea89
|
@ -341,7 +341,7 @@ export declare class Router {
|
|||
urlHandlingStrategy: UrlHandlingStrategy;
|
||||
urlUpdateStrategy: 'deferred' | 'eager';
|
||||
constructor(rootComponentType: Type<any> | 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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue