updated definitions to include more typing

This commit is contained in:
unknown
2015-09-11 15:04:37 +02:00
parent b89ecfca5b
commit 8b5b8b65da
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
/// <reference path="tooltipster.d.ts" />
$(function() {
const tooltips = <JQueryTooltipster.ITooltipsterInstance[]>$("#tooltip").tooltipster({
var tooltips = <JQueryTooltipster.ITooltipsterInstance[]>$("#tooltip").tooltipster({
content: "hi friend!",
delay: 300,
functionAfter: (origin) => {
+5 -5
View File
@@ -74,27 +74,27 @@ declare module JQueryTooltipster {
* @param origin
* @param content
*/
functionInit?: (origin, content) => void;
functionInit?: (origin: JQuery, content: string) => void;
/**
* Create a custom function to be fired before the tooltip opens. This function may prevent or hold off the opening.
* @param origin
* @param continueTooltip
*/
functionBefore?: (origin, continueTooltip) => void;
functionBefore?: (origin: JQuery, continueTooltip: () => void) => void;
/**
* Create a custom function to be fired when the tooltip and its contents have been added to the DOM.
* @param origin
* @param tooltip
*/
functionReady?: (origin, tooltip) => void;
functionReady?: (origin: JQuery, tooltip: JQuery) => void;
/**
* Create a custom function to be fired once the tooltip has been closed and removed from the DOM.
* @param origin
*/
functionAfter?: (origin) => void;
functionAfter?: (origin: JQuery) => void;
/**
* If true, the tooltip will close if its origin is clicked. This option only applies when 'trigger' is 'hover' and 'autoClose' is false. Default: false
@@ -228,7 +228,7 @@ declare module JQueryTooltipster {
* @param value
* @returns {}
*/
content(value: string);
content(value: string): JQuery;
/**
* Shows the tooltip.