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:
harunurhan
2017-12-03 20:17:06 +01:00
committed by Chuck Jazdzewski
parent 1ccc3242f1
commit d3d9aac4e9
2 changed files with 6 additions and 6 deletions

View File

@ -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 */