fix(router): update type for routerLink to include null and undefined (#37018)
PR #13380 added support for `null` and `undefined` but the type on the parameter was not updated. This would result in a compilation error if `fullTemplateTypeCheck` is enabled. Fixes #36544 PR Close #37018
This commit is contained in:

committed by
Kara Erickson

parent
87f951c5c1
commit
ef9f8df9ed
4
goldens/public-api/router/router.d.ts
vendored
4
goldens/public-api/router/router.d.ts
vendored
@ -380,7 +380,7 @@ export declare class RouterLink {
|
||||
};
|
||||
queryParamsHandling: QueryParamsHandling;
|
||||
replaceUrl: boolean;
|
||||
set routerLink(commands: any[] | string);
|
||||
set routerLink(commands: any[] | string | null | undefined);
|
||||
skipLocationChange: boolean;
|
||||
state?: {
|
||||
[k: string]: any;
|
||||
@ -414,7 +414,7 @@ export declare class RouterLinkWithHref implements OnChanges, OnDestroy {
|
||||
};
|
||||
queryParamsHandling: QueryParamsHandling;
|
||||
replaceUrl: boolean;
|
||||
set routerLink(commands: any[] | string);
|
||||
set routerLink(commands: any[] | string | null | undefined);
|
||||
skipLocationChange: boolean;
|
||||
state?: {
|
||||
[k: string]: any;
|
||||
|
Reference in New Issue
Block a user