Skip to content

Commit

Permalink
fix(tooltip): properties types
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed Oct 13, 2016
1 parent eb90e9a commit b407012
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
6 changes: 2 additions & 4 deletions components/tooltip/tooltip.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class TooltipDirective {
private visible: boolean = false;
private tooltip: ComponentRef<any>;

private delayTimeoutId: NodeJS.Timer;
private delayTimeoutId: number;

public constructor(viewContainerRef: ViewContainerRef,
componentsHelper: ComponentsHelper) {
Expand Down Expand Up @@ -84,9 +84,7 @@ export class TooltipDirective {
};

if (this.delay) {
this.delayTimeoutId = setTimeout(() => {
showTooltip();
}, this.delay);
this.delayTimeoutId = setTimeout(() => { showTooltip(); }, this.delay);
} else {
showTooltip();
}
Expand Down
3 changes: 3 additions & 0 deletions demo/custom-typings.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
declare const ENV:string;
// google code-prettify
declare const PR:any;

declare const require:any;
declare const global:any;
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
"moment": "2.15.1"
},
"peerDependencies": {
"@angular/common": "~2.0.1",
"@angular/compiler": "~2.0.1",
"@angular/core": "~2.0.1",
"@angular/forms": "~2.0.1"
"@angular/common": "^2.0.0",
"@angular/compiler": "^2.0.0",
"@angular/core": "^2.0.0",
"@angular/forms": "^2.0.0"
},
"devDependencies": {
"@angular/common": "2.0.1",
Expand All @@ -69,7 +69,6 @@
"@angular/platform-server": "2.0.1",
"@angular/router": "3.0.1",
"@types/jasmine": "2.2.34",
"@types/node": "6.0.41",
"@types/webpack": "1.12.34",
"async": "2.0.1",
"bootstrap": "3.3.7",
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"lib": ["dom", "es6"],
"types": [
"jasmine",
"node",
"webpack"
]
},
Expand All @@ -26,4 +25,4 @@
"./ng2-bootstrap.ts"
],
"atom": { "rewriteTsconfig": false }
}
}

0 comments on commit b407012

Please sign in to comment.