@@ -195,22 +195,22 @@ export class MatTooltip implements OnDestroy, AfterViewInit {
195195 optional : true ,
196196 } ) ;
197197
198- _overlayRef : OverlayRef | null ;
199- _tooltipInstance : TooltipComponent | null ;
198+ _overlayRef : OverlayRef | null = null ;
199+ _tooltipInstance : TooltipComponent | null = null ;
200200 _overlayPanelClass : string [ ] | undefined ; // Used for styling internally.
201201
202- private _portal : ComponentPortal < TooltipComponent > ;
202+ private _portal ! : ComponentPortal < TooltipComponent > ;
203203 private _position : TooltipPosition = 'below' ;
204204 private _positionAtOrigin : boolean = false ;
205205 private _disabled : boolean = false ;
206- private _tooltipClass : string | string [ ] | Set < string > | { [ key : string ] : unknown } ;
206+ private _tooltipClass ! : string | string [ ] | Set < string > | { [ key : string ] : unknown } ;
207207 private _viewInitialized = false ;
208208 private _pointerExitEventsInitialized = false ;
209209 private readonly _tooltipComponent = TooltipComponent ;
210210 private _viewportMargin = 8 ;
211- private _currentPosition : TooltipPosition ;
211+ private _currentPosition ! : TooltipPosition ;
212212 private readonly _cssClassPrefix : string = 'mat-mdc' ;
213- private _ariaDescriptionPending : boolean ;
213+ private _ariaDescriptionPending = false ;
214214 private _dirSubscribed = false ;
215215
216216 /** Allows the user to define the position of the tooltip relative to the parent element */
@@ -279,7 +279,7 @@ export class MatTooltip implements OnDestroy, AfterViewInit {
279279 this . _showDelay = coerceNumberProperty ( value ) ;
280280 }
281281
282- private _showDelay : number ;
282+ private _showDelay ! : number ;
283283
284284 /** The default delay in ms before hiding the tooltip after hide is called */
285285 @Input ( 'matTooltipHideDelay' )
@@ -295,7 +295,7 @@ export class MatTooltip implements OnDestroy, AfterViewInit {
295295 }
296296 }
297297
298- private _hideDelay : number ;
298+ private _hideDelay ! : number ;
299299
300300 /**
301301 * How touch gestures should be handled by the tooltip. On touch devices the tooltip directive
@@ -970,10 +970,10 @@ export class TooltipComponent implements OnDestroy {
970970 _isMultiline = false ;
971971
972972 /** Message to display in the tooltip */
973- message : string ;
973+ message ! : string ;
974974
975975 /** Classes to be added to the tooltip. Supports the same syntax as `ngClass`. */
976- tooltipClass : string | string [ ] | Set < string > | { [ key : string ] : unknown } ;
976+ tooltipClass ! : string | string [ ] | Set < string > | { [ key : string ] : unknown } ;
977977
978978 /** The timeout ID of any current timer set to show the tooltip */
979979 private _showTimeoutId : ReturnType < typeof setTimeout > | undefined ;
@@ -982,10 +982,10 @@ export class TooltipComponent implements OnDestroy {
982982 private _hideTimeoutId : ReturnType < typeof setTimeout > | undefined ;
983983
984984 /** Element that caused the tooltip to open. */
985- _triggerElement : HTMLElement ;
985+ _triggerElement ! : HTMLElement ;
986986
987987 /** Amount of milliseconds to delay the closing sequence. */
988- _mouseLeaveHideDelay : number ;
988+ _mouseLeaveHideDelay ! : number ;
989989
990990 /** Whether animations are currently disabled. */
991991 private _animationsDisabled = _animationsDisabled ( ) ;
@@ -996,7 +996,7 @@ export class TooltipComponent implements OnDestroy {
996996 // the DOM which can happen before `ngAfterViewInit`.
997997 static : true ,
998998 } )
999- _tooltip : ElementRef < HTMLElement > ;
999+ _tooltip ! : ElementRef < HTMLElement > ;
10001000
10011001 /** Whether interactions on the page should close the tooltip */
10021002 private _closeOnInteraction = false ;
0 commit comments