feat(core): optional generic type for ElementRef (#20765)
Add optional, backwards compatible generic type to `ElementRef` to support typed `nativeElement` Fix #13139 PR Close #20765
This commit is contained in:

committed by
Chuck Jazdzewski

parent
1ccc3242f1
commit
d3d9aac4e9
6
tools/public_api_guard/core/core.d.ts
vendored
6
tools/public_api_guard/core/core.d.ts
vendored
@ -362,9 +362,9 @@ export interface DoCheck {
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class ElementRef {
|
||||
/** @stable */ nativeElement: any;
|
||||
constructor(nativeElement: any);
|
||||
export declare class ElementRef<T = any> {
|
||||
/** @stable */ nativeElement: T;
|
||||
constructor(nativeElement: T);
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
|
Reference in New Issue
Block a user