Skip to content

Commit 57ae009

Browse files
committed
fix(button): add return type to _getHostElement for type safety
1 parent b34713c commit 57ae009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/button/button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class MatButton extends _MatButtonMixinBase
118118
this._getHostElement().focus();
119119
}
120120

121-
_getHostElement() {
121+
_getHostElement(): HTMLElement {
122122
return this._elementRef.nativeElement;
123123
}
124124

0 commit comments

Comments
 (0)