From 6deb4784d8449e3a06c849df437522c62a9014d8 Mon Sep 17 00:00:00 2001 From: Kacper Polak Date: Sun, 27 Nov 2016 14:42:16 +0100 Subject: [PATCH] fix(tooltip): Fix type for timer I fixed type error `Type 'Timer' is not assignable to type 'number'` Now `_hideTimeoutId` is type of `NodeJS.Timer` --- src/lib/tooltip/tooltip.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/tooltip/tooltip.ts b/src/lib/tooltip/tooltip.ts index c08dc93a3a7f..db32dc3f57ad 100644 --- a/src/lib/tooltip/tooltip.ts +++ b/src/lib/tooltip/tooltip.ts @@ -188,10 +188,10 @@ export class MdTooltip { export type TooltipVisibility = 'visible' | 'hidden'; @Component({ - moduleId: module.id, + selector: 'md-tooltip-component', templateUrl: 'tooltip.html', - styleUrls: ['tooltip.css'], + styleUrls: ['tooltip.scss'], animations: [ trigger('state', [ state('void', style({transform: 'scale(0)'})), @@ -210,7 +210,7 @@ export class TooltipComponent { message: string; /** The timeout ID of any current timer set to hide the tooltip */ - _hideTimeoutId: number; + _hideTimeoutId: NodeJS.Timer; /** Property watched by the animation framework to show or hide the tooltip */ _visibility: TooltipVisibility;