mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Merge pull request #17449 from leonard-thieu/jquery-dependents
Fix jQuery dependents
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import * as Clndr from 'clndr';
|
||||
import $ = require('jquery');
|
||||
|
||||
const options: Clndr.ClndrOptions = {
|
||||
template: '',
|
||||
|
||||
Vendored
+3
@@ -2,6 +2,9 @@
|
||||
// Project: https://github.com/kylestetz/CLNDR
|
||||
// Definitions by: jasperjn <https://github.com/jasperjn>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="jquery" />
|
||||
|
||||
import * as moment from 'moment';
|
||||
|
||||
|
||||
@@ -12,11 +12,6 @@
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"paths": {
|
||||
"jquery": [
|
||||
"jquery/v2"
|
||||
]
|
||||
},
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/* tslint:disable */
|
||||
|
||||
import $ = require('jquery');
|
||||
|
||||
module AccordionComponent {
|
||||
$(function () {
|
||||
var sample = new ej.Accordion($("#basicAccordion"), {
|
||||
|
||||
Vendored
+4
-1
@@ -2,6 +2,9 @@
|
||||
// Project: http://help.syncfusion.com/js/typescript
|
||||
// Definitions by: Syncfusion <https://github.com/syncfusion/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="jquery" />
|
||||
|
||||
/*!
|
||||
* filename: ej.web.all.d.ts
|
||||
@@ -66684,7 +66687,7 @@ interface JQueryPromise<T> {
|
||||
*/
|
||||
cancel?: boolean;
|
||||
}
|
||||
interface JQueryDeferred<T> extends JQueryPromise<T> {
|
||||
interface JQueryDeferred<T> {
|
||||
/**
|
||||
* Returns the cancel option value.
|
||||
*/
|
||||
|
||||
@@ -12,11 +12,6 @@
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"paths": {
|
||||
"jquery": [
|
||||
"jquery/v2"
|
||||
]
|
||||
},
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
|
||||
@@ -1,21 +1,17 @@
|
||||
import $ = require('jquery');
|
||||
|
||||
// Can also be used with $(document).ready()
|
||||
$(window).load(function() {
|
||||
$(function() {
|
||||
$('.flexslider').flexslider({
|
||||
animation: "slide"
|
||||
});
|
||||
});
|
||||
|
||||
// Can also be used with $(document).ready()
|
||||
$(window).load(function() {
|
||||
$(function() {
|
||||
$('.flexslider').flexslider({
|
||||
animation: "slide",
|
||||
controlNav: "thumbnails"
|
||||
});
|
||||
});
|
||||
|
||||
$(window).load(function() {
|
||||
$(function() {
|
||||
// The slider being synced must be initialized first
|
||||
$('#carousel').flexslider({
|
||||
animation: "slide",
|
||||
@@ -36,7 +32,7 @@ $(window).load(function() {
|
||||
});
|
||||
});
|
||||
|
||||
$(window).load(function() {
|
||||
$(function() {
|
||||
$('.flexslider').flexslider({
|
||||
animation: "slide",
|
||||
animationLoop: false,
|
||||
@@ -45,8 +41,7 @@ $(window).load(function() {
|
||||
});
|
||||
});
|
||||
|
||||
// Can also be used with $(document).ready()
|
||||
$(window).load(function() {
|
||||
$(function() {
|
||||
$('.flexslider').flexslider({
|
||||
animation: "slide",
|
||||
animationLoop: false,
|
||||
@@ -57,12 +52,10 @@ $(window).load(function() {
|
||||
});
|
||||
});
|
||||
|
||||
// Can also be used with $(document).ready()
|
||||
$(window).load(function() {
|
||||
$(function() {
|
||||
|
||||
// Vimeo API nonsense
|
||||
var player = document.getElementById('player_1');
|
||||
$(player).on('ready', ready);
|
||||
$(ready);
|
||||
|
||||
function addEvent(element:any, eventName:any, callback:any) {
|
||||
if (element.addEventListener) {
|
||||
@@ -72,8 +65,8 @@ $(window).load(function() {
|
||||
}
|
||||
}
|
||||
|
||||
function ready(player_id: any) {
|
||||
var froogaloop = $(player_id);
|
||||
function ready() {
|
||||
var froogaloop = $('#player_1');
|
||||
froogaloop.on('play', function(data) {
|
||||
$('.flexslider').flexslider({ pauseText: "pause" });
|
||||
});
|
||||
|
||||
Vendored
+2
@@ -4,6 +4,8 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="jquery" />
|
||||
|
||||
interface SliderObject { //Object: The slider element itself
|
||||
container: Object; //Object: The ul.slides within the slider
|
||||
slides: Object; //Object: The slides of the slider
|
||||
|
||||
@@ -12,11 +12,6 @@
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"paths": {
|
||||
"jquery": [
|
||||
"jquery/v2"
|
||||
]
|
||||
},
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import $ = require('jquery');
|
||||
|
||||
const areaOptions: ImageMapster.AreaRenderingOptions = {
|
||||
key: "foo",
|
||||
includeKeys: "foo",
|
||||
|
||||
Vendored
+910
-906
File diff suppressed because it is too large
Load Diff
Vendored
+3
@@ -2,6 +2,9 @@
|
||||
// Project: http://carlosbonetti.github.io/jquery-loading/
|
||||
// Definitions by: delphinus <https://github.com/delphinus35/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="jquery" />
|
||||
|
||||
declare namespace JQueryEasyLoading {
|
||||
|
||||
|
||||
@@ -35,7 +35,6 @@ function test_commands() {
|
||||
.loading("toggle");
|
||||
}
|
||||
|
||||
import * as jQuery from "jquery";
|
||||
import * as factory from "jquery-easy-loading";
|
||||
|
||||
function test_factory() {
|
||||
|
||||
@@ -12,11 +12,6 @@
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"paths": {
|
||||
"jquery": [
|
||||
"jquery/v2"
|
||||
]
|
||||
},
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
|
||||
Vendored
+3
@@ -2,6 +2,9 @@
|
||||
// Project: https://github.com/jakerella/jquery-mockjax
|
||||
// Definitions by: Laszlo Jakab <https://github.com/laszlojakab/>, Vladimir Đokić <https://github.com/vladeck/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="jquery" />
|
||||
|
||||
interface MockJaxSettingsHeaders {
|
||||
[key: string]: string;
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/// <reference types="qunit" />
|
||||
|
||||
import $ = require('jquery');
|
||||
|
||||
class Tests {
|
||||
private _noErrorCallbackExpected: (jqXHR: JQueryXHR, textStatus: string, errorThrown: string) => any;
|
||||
private _defaultMockjaxSettings: MockJaxSettings;
|
||||
|
||||
@@ -12,11 +12,6 @@
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"paths": {
|
||||
"jquery": [
|
||||
"jquery/v2"
|
||||
]
|
||||
},
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
|
||||
Vendored
+150
-146
@@ -3,156 +3,160 @@
|
||||
// Definitions by: Adam R. Smith <https://github.com/sunetos>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace JQueryBbq {
|
||||
import $ = require('jquery');
|
||||
|
||||
declare global {
|
||||
namespace JQueryBbq {
|
||||
|
||||
interface JQuery {
|
||||
/**
|
||||
* Adds a 'state' into the browser history at the current position, setting
|
||||
* location.hash and triggering any bound <hashchange event> callbacks
|
||||
* (provided the new state is different than the previous state).
|
||||
*
|
||||
* @name params A serialized params string or a hash string beginning with # to merge into location.hash.
|
||||
* @name merge_mode Merge behavior defaults to 0 if merge_mode is not specified (unless a hash string beginning with # is specified, in which case merge behavior defaults to 2)
|
||||
*/
|
||||
pushState(params?: string, merge_mode?: number): void;
|
||||
|
||||
pushState(params?: any, merge_mode?: number): void;
|
||||
|
||||
/**
|
||||
* Retrieves the current 'state' from the browser history, parsing
|
||||
* location.hash for a specific key or returning an object containing the
|
||||
* entire state, optionally coercing numbers, booleans, null and undefined
|
||||
* values.
|
||||
*
|
||||
* @name key An optional state key for which to return a value.
|
||||
* @name coerce If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false
|
||||
*/
|
||||
getState(key?: string, coerce?: boolean): any;
|
||||
|
||||
getState(coerce?: boolean): any;
|
||||
|
||||
/**
|
||||
* Remove one or more keys from the current browser history 'state', creating
|
||||
* a new state, setting location.hash and triggering any bound
|
||||
* <hashchange event> callbacks (provided the new state is different than
|
||||
* the previous state).
|
||||
*
|
||||
* @name key One or more key values to remove from the current state.
|
||||
*/
|
||||
removeState(...key: any[]): void;
|
||||
}
|
||||
|
||||
interface ParamFragment {
|
||||
(url?: string): string;
|
||||
|
||||
(url: string, params: any, merge_mode?: number): string;
|
||||
|
||||
/**
|
||||
* Specify characters that will be left unescaped when fragments are created
|
||||
* or merged using <jQuery.param.fragment>, or when the fragment is modified
|
||||
* using <jQuery.bbq.pushState>. This option only applies to serialized data
|
||||
* object fragments, and not set-as-string fragments. Does not affect the
|
||||
* query string. Defaults to ",/" (comma, forward slash).
|
||||
*
|
||||
* @name chars The characters to not escape in the fragment. If unspecified, defaults to empty string (escape all characters).
|
||||
*/
|
||||
noEscape: (chars?: string) => void;
|
||||
|
||||
/**
|
||||
* TODO: DESCRIBE
|
||||
*
|
||||
* @name state TODO: DESCRIBE
|
||||
*/
|
||||
ajaxCrawlable(state?: boolean): boolean;
|
||||
}
|
||||
|
||||
interface JQueryDeparam {
|
||||
/**
|
||||
* Deserialize a params string into an object, optionally coercing numbers,
|
||||
* booleans, null and undefined values; this method is the counterpart to the
|
||||
* internal jQuery.param method.
|
||||
*
|
||||
* @name params A params string to be parsed.
|
||||
* @name coerce If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.
|
||||
*/
|
||||
(params: string, coerce?: boolean): any;
|
||||
|
||||
|
||||
/**
|
||||
* Parse the query string from a URL or the current window.location.href,
|
||||
* deserializing it into an object, optionally coercing numbers, booleans,
|
||||
* null and undefined values.
|
||||
*
|
||||
* @name url An optional params string or URL containing query string params to be parsed. If url is omitted, the current window.location.href is used.
|
||||
* @name coerce If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.
|
||||
*/
|
||||
querystring(url?: string, coerce?: boolean): any;
|
||||
|
||||
/**
|
||||
* Parse the fragment (hash) from a URL or the current window.location.href,
|
||||
* deserializing it into an object, optionally coercing numbers, booleans,
|
||||
* null and undefined values.
|
||||
*
|
||||
* @name url An optional params string or URL containing fragment (hash) params to be parsed. If url is omitted, the current window.location.href is used.
|
||||
* @name coerce If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.
|
||||
*/
|
||||
fragment(url?: string, coerce?: boolean): any;
|
||||
}
|
||||
|
||||
interface EventObject extends JQueryEventObject {
|
||||
fragment: string;
|
||||
|
||||
getState(key?: string, coerce?: boolean);
|
||||
}
|
||||
}
|
||||
|
||||
interface JQueryParam {
|
||||
/**
|
||||
* Parse the query string from a URL or the current window.location.href,
|
||||
* deserializing it into an object, optionally coercing numbers, booleans,
|
||||
* null and undefined values.
|
||||
*
|
||||
* @name url An optional params string or URL containing query string params to be parsed. If url is omitted, the current window.location.href is used.
|
||||
* @name coerce (Boolean) If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.
|
||||
* @name merge_mode An object representing the deserialized params string.
|
||||
*/
|
||||
querystring(url?: string, coerce?: boolean, merge_mode?: number): string;
|
||||
|
||||
querystring(url?: string, coerce?: any, merge_mode?: number): string;
|
||||
|
||||
fragment: JQueryBbq.ParamFragment;
|
||||
|
||||
/**
|
||||
* Returns a params string equivalent to that returned by the internal
|
||||
* jQuery.param method, but sorted, which makes it suitable for use as a
|
||||
* cache key.
|
||||
*
|
||||
* @name obj An object to be serialized.
|
||||
* @name traditional Params deep/shallow serialization mode. See the documentation at http://api.jquery.com/jQuery.param/ for more detail.
|
||||
*/
|
||||
sorted(obj: any, traditional?: boolean): string;
|
||||
}
|
||||
|
||||
interface JQueryStatic {
|
||||
bbq: JQueryBbq.JQuery;
|
||||
|
||||
deparam: JQueryBbq.JQueryDeparam;
|
||||
|
||||
/**
|
||||
* Get the internal "Default URL attribute per tag" list, or augment the list
|
||||
* with additional tag-attribute pairs, in case the defaults are insufficient.
|
||||
*
|
||||
* @name tag_attr An object containing a list of tag names and their associated default attribute names in the format { tag: 'attr', ... } to be merged into the internal tag-attribute list.
|
||||
*/
|
||||
elemUrlAttr(tag_attr?: any): any;
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
/**
|
||||
* Adds a 'state' into the browser history at the current position, setting
|
||||
* location.hash and triggering any bound <hashchange event> callbacks
|
||||
* (provided the new state is different than the previous state).
|
||||
*
|
||||
* @name params A serialized params string or a hash string beginning with # to merge into location.hash.
|
||||
* @name merge_mode Merge behavior defaults to 0 if merge_mode is not specified (unless a hash string beginning with # is specified, in which case merge behavior defaults to 2)
|
||||
*/
|
||||
pushState(params?: string, merge_mode?: number): void;
|
||||
querystring(attr?: any, params?: any, merge_mode?: number): JQuery;
|
||||
|
||||
pushState(params?: any, merge_mode?: number): void;
|
||||
fragment(attr?: any, params?: any, merge_mode?: number): JQuery;
|
||||
|
||||
/**
|
||||
* Retrieves the current 'state' from the browser history, parsing
|
||||
* location.hash for a specific key or returning an object containing the
|
||||
* entire state, optionally coercing numbers, booleans, null and undefined
|
||||
* values.
|
||||
*
|
||||
* @name key An optional state key for which to return a value.
|
||||
* @name coerce If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false
|
||||
*/
|
||||
getState(key?: string, coerce?: boolean): any;
|
||||
hashchange(eventData?: any, handler?: (eventObject: JQueryBbq.EventObject) => any): JQuery;
|
||||
|
||||
getState(coerce?: boolean): any;
|
||||
|
||||
/**
|
||||
* Remove one or more keys from the current browser history 'state', creating
|
||||
* a new state, setting location.hash and triggering any bound
|
||||
* <hashchange event> callbacks (provided the new state is different than
|
||||
* the previous state).
|
||||
*
|
||||
* @name key One or more key values to remove from the current state.
|
||||
*/
|
||||
removeState(...key: any[]): void;
|
||||
}
|
||||
|
||||
interface ParamFragment {
|
||||
(url?: string): string;
|
||||
|
||||
(url: string, params: any, merge_mode?: number): string;
|
||||
|
||||
/**
|
||||
* Specify characters that will be left unescaped when fragments are created
|
||||
* or merged using <jQuery.param.fragment>, or when the fragment is modified
|
||||
* using <jQuery.bbq.pushState>. This option only applies to serialized data
|
||||
* object fragments, and not set-as-string fragments. Does not affect the
|
||||
* query string. Defaults to ",/" (comma, forward slash).
|
||||
*
|
||||
* @name chars The characters to not escape in the fragment. If unspecified, defaults to empty string (escape all characters).
|
||||
*/
|
||||
noEscape: (chars?: string) => void;
|
||||
|
||||
/**
|
||||
* TODO: DESCRIBE
|
||||
*
|
||||
* @name state TODO: DESCRIBE
|
||||
*/
|
||||
ajaxCrawlable(state?: boolean): boolean;
|
||||
}
|
||||
|
||||
interface JQueryDeparam {
|
||||
/**
|
||||
* Deserialize a params string into an object, optionally coercing numbers,
|
||||
* booleans, null and undefined values; this method is the counterpart to the
|
||||
* internal jQuery.param method.
|
||||
*
|
||||
* @name params A params string to be parsed.
|
||||
* @name coerce If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.
|
||||
*/
|
||||
(params: string, coerce?: boolean): any;
|
||||
|
||||
|
||||
/**
|
||||
* Parse the query string from a URL or the current window.location.href,
|
||||
* deserializing it into an object, optionally coercing numbers, booleans,
|
||||
* null and undefined values.
|
||||
*
|
||||
* @name url An optional params string or URL containing query string params to be parsed. If url is omitted, the current window.location.href is used.
|
||||
* @name coerce If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.
|
||||
*/
|
||||
querystring(url?: string, coerce?: boolean): any;
|
||||
|
||||
/**
|
||||
* Parse the fragment (hash) from a URL or the current window.location.href,
|
||||
* deserializing it into an object, optionally coercing numbers, booleans,
|
||||
* null and undefined values.
|
||||
*
|
||||
* @name url An optional params string or URL containing fragment (hash) params to be parsed. If url is omitted, the current window.location.href is used.
|
||||
* @name coerce If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.
|
||||
*/
|
||||
fragment(url?: string, coerce?: boolean): any;
|
||||
}
|
||||
|
||||
interface EventObject extends JQueryEventObject {
|
||||
fragment: string;
|
||||
|
||||
getState(key?: string, coerce?: boolean);
|
||||
hashchange(handler: (eventObject: JQueryBbq.EventObject) => any): JQuery;
|
||||
}
|
||||
}
|
||||
|
||||
interface JQueryParam {
|
||||
/**
|
||||
* Parse the query string from a URL or the current window.location.href,
|
||||
* deserializing it into an object, optionally coercing numbers, booleans,
|
||||
* null and undefined values.
|
||||
*
|
||||
* @name url An optional params string or URL containing query string params to be parsed. If url is omitted, the current window.location.href is used.
|
||||
* @name coerce (Boolean) If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.
|
||||
* @name merge_mode An object representing the deserialized params string.
|
||||
*/
|
||||
querystring(url?: string, coerce?: boolean, merge_mode?: number): string;
|
||||
|
||||
querystring(url?: string, coerce?: any, merge_mode?: number): string;
|
||||
|
||||
fragment: JQueryBbq.ParamFragment;
|
||||
|
||||
/**
|
||||
* Returns a params string equivalent to that returned by the internal
|
||||
* jQuery.param method, but sorted, which makes it suitable for use as a
|
||||
* cache key.
|
||||
*
|
||||
* @name obj An object to be serialized.
|
||||
* @name traditional Params deep/shallow serialization mode. See the documentation at http://api.jquery.com/jQuery.param/ for more detail.
|
||||
*/
|
||||
sorted(obj: any, traditional?: boolean): string;
|
||||
}
|
||||
|
||||
interface JQueryStatic {
|
||||
bbq: JQueryBbq.JQuery;
|
||||
|
||||
deparam: JQueryBbq.JQueryDeparam;
|
||||
|
||||
/**
|
||||
* Get the internal "Default URL attribute per tag" list, or augment the list
|
||||
* with additional tag-attribute pairs, in case the defaults are insufficient.
|
||||
*
|
||||
* @name tag_attr An object containing a list of tag names and their associated default attribute names in the format { tag: 'attr', ... } to be merged into the internal tag-attribute list.
|
||||
*/
|
||||
elemUrlAttr(tag_attr?: any): any;
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
querystring(attr?: any, params?: any, merge_mode?: number): JQuery;
|
||||
|
||||
fragment(attr?: any, params?: any, merge_mode?: number): JQuery;
|
||||
|
||||
hashchange(eventData?: any, handler?: (eventObject: JQueryBbq.EventObject) => any): JQuery;
|
||||
|
||||
hashchange(handler: (eventObject: JQueryBbq.EventObject) => any): JQuery;
|
||||
}
|
||||
|
||||
+4
@@ -2,6 +2,9 @@
|
||||
// Project: https://github.com/remybach/jQuery.clientSideLogging
|
||||
// Definitions by: Diullei Gomes <https://github.com/diullei>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="jquery" />
|
||||
|
||||
interface ClientSideLoggingClientInfoObject {
|
||||
location?: boolean; // The url to the page on which the error occurred.
|
||||
@@ -23,6 +26,7 @@ interface ClientSideLoggingObject {
|
||||
|
||||
interface JQueryStatic {
|
||||
info: (what?: any) => any;
|
||||
error(what?: any): any;
|
||||
log: (what?: any) => any;
|
||||
clientSideLogging: (options: ClientSideLoggingObject) => any;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import $ = require('jquery');
|
||||
|
||||
$.clientSideLogging({
|
||||
log_level: 3,
|
||||
client_info: {
|
||||
|
||||
@@ -12,11 +12,6 @@
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"paths": {
|
||||
"jquery": [
|
||||
"jquery/v2"
|
||||
]
|
||||
},
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
|
||||
Vendored
+261
-258
@@ -3,269 +3,272 @@
|
||||
// Definitions by: Vincent Bortone <https://github.com/vbortone/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/**
|
||||
* HTML segments for tip layout
|
||||
*/
|
||||
interface JoyrideTemplate {
|
||||
/**
|
||||
* Link template
|
||||
* @member {string}
|
||||
*/
|
||||
link?: string;
|
||||
import $ = require('jquery');
|
||||
|
||||
declare global {
|
||||
/**
|
||||
* Timer template
|
||||
* @member {string}
|
||||
*/
|
||||
timer?: string;
|
||||
* HTML segments for tip layout
|
||||
*/
|
||||
interface JoyrideTemplate {
|
||||
/**
|
||||
* Link template
|
||||
* @member {string}
|
||||
*/
|
||||
link?: string;
|
||||
|
||||
/**
|
||||
* Tip template
|
||||
* @member {string}
|
||||
*/
|
||||
tip?: string;
|
||||
/**
|
||||
* Timer template
|
||||
* @member {string}
|
||||
*/
|
||||
timer?: string;
|
||||
|
||||
/**
|
||||
* Wrapper template
|
||||
* @member {string}
|
||||
*/
|
||||
wrapper?: string;
|
||||
/**
|
||||
* Tip template
|
||||
* @member {string}
|
||||
*/
|
||||
tip?: string;
|
||||
|
||||
/**
|
||||
* Button template
|
||||
* @member {string}
|
||||
*/
|
||||
button?: string;
|
||||
/**
|
||||
* Wrapper template
|
||||
* @member {string}
|
||||
*/
|
||||
wrapper?: string;
|
||||
|
||||
/**
|
||||
* Modal template
|
||||
* @member {string}
|
||||
*/
|
||||
modal?: string;
|
||||
/**
|
||||
* Button template
|
||||
* @member {string}
|
||||
*/
|
||||
button?: string;
|
||||
|
||||
/**
|
||||
* Exposed Cover template
|
||||
* @member {string}
|
||||
*/
|
||||
exposeCover?: string;
|
||||
}
|
||||
|
||||
interface JoyrideOptions {
|
||||
/**
|
||||
* Version
|
||||
* @member {string}
|
||||
*/
|
||||
version?: string;
|
||||
|
||||
/**
|
||||
* 'top' or 'bottom' in relation to parent
|
||||
* @member {string}
|
||||
*/
|
||||
tipLocation?: string;
|
||||
|
||||
/**
|
||||
* override on a per tooltip bases
|
||||
* @member {any}
|
||||
*/
|
||||
nubPosition?: any;
|
||||
|
||||
/**
|
||||
* whether to scroll to tips
|
||||
* @member {boolean}
|
||||
*/
|
||||
scroll?: boolean;
|
||||
|
||||
/**
|
||||
* Page scrolling speed in ms
|
||||
* @member {number}
|
||||
*/
|
||||
scrollSpeed?: number;
|
||||
|
||||
/**
|
||||
* 0 = off, all other numbers = time(ms)
|
||||
* @member {number}
|
||||
*/
|
||||
timer?: number;
|
||||
|
||||
/**
|
||||
* true or false - false tour starts when restart called
|
||||
* @member {boolean}
|
||||
*/
|
||||
autoStart?: boolean;
|
||||
|
||||
/**
|
||||
* true/false to start timer on first click
|
||||
* @member {boolean}
|
||||
*/
|
||||
startTimerOnClick?: boolean;
|
||||
|
||||
/**
|
||||
* the index of the tooltip you want to start on (index of the li)
|
||||
* @member {number}
|
||||
*/
|
||||
startOffset?: number;
|
||||
|
||||
/**
|
||||
* true/false for next button visibility
|
||||
* @member {boolean}
|
||||
*/
|
||||
nextButton?: boolean;
|
||||
|
||||
/**
|
||||
* 'pop' or 'fade' in each tip
|
||||
* @member {string}
|
||||
*/
|
||||
tipAnimation?: string;
|
||||
|
||||
/**
|
||||
* array of indexes where to pause the tour after
|
||||
* @member {any[]}
|
||||
*/
|
||||
pauseAfter?: any[];
|
||||
|
||||
/**
|
||||
* if 'fade'- speed in ms of transition
|
||||
* @member {number}
|
||||
*/
|
||||
tipAnimationFadeSpeed?: number;
|
||||
|
||||
/**
|
||||
* true/false for whether cookies are used
|
||||
* @member {boolean}
|
||||
*/
|
||||
cookieMonster?: boolean;
|
||||
|
||||
/**
|
||||
* choose your own cookie name
|
||||
* member {string}
|
||||
*/
|
||||
cookieName?: string;
|
||||
|
||||
/**
|
||||
* Will this cookie be attached to a domain, ie. '.notableapp.com'
|
||||
* @member {any}
|
||||
*/
|
||||
cookieDomain?: any;
|
||||
|
||||
/**
|
||||
* Set to '/' if you want the cookie for the whole website
|
||||
* @member {any}
|
||||
*/
|
||||
cookiePath?: any;
|
||||
|
||||
/**
|
||||
* true or false to control whether localstorage is used
|
||||
* @member {boolean}
|
||||
*/
|
||||
localStorage?: boolean;
|
||||
|
||||
/**
|
||||
* Keyname in localstorage
|
||||
@member {string}
|
||||
*/
|
||||
localStorageKey?: string;
|
||||
|
||||
/**
|
||||
* Where the tip be attached if not inline
|
||||
* @member {HTMLElement}
|
||||
*/
|
||||
tipContainer?: HTMLElement;
|
||||
|
||||
/**
|
||||
* Whether to cover page with modal during the tour
|
||||
* @member {boolean}
|
||||
*/
|
||||
modal?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to expose the elements at each step in the tour (requires modal:true)
|
||||
* @member {boolean}
|
||||
*/
|
||||
expose?: boolean;
|
||||
|
||||
/**
|
||||
* A method to call after an element has been exposed
|
||||
* @method
|
||||
* @param {number} index Tip Index
|
||||
* @param {JQuery} nextTip Tip object
|
||||
* @param {JQuery} el Element
|
||||
*/
|
||||
postExposeCallback?: (index: number, nextTip: JQuery, el?: JQuery) => void;
|
||||
|
||||
/**
|
||||
* A method to call before the tour starts (passed index, tip, and cloned exposed element)
|
||||
* @method
|
||||
* @param {number} index Current Tip Index
|
||||
* @param {JQuery} currentTip Current Tip object
|
||||
* @param {JQuery} el Element
|
||||
*/
|
||||
preRideCallback?: (index: number, currentTip: JQuery, el?: JQuery) => void;
|
||||
|
||||
/**
|
||||
* a method to call once the tour closes
|
||||
* @method
|
||||
* @param {number} index Current Tip Index
|
||||
* @param {JQuery} currentTip Current Tip object
|
||||
* @param {boolean} isAborted Is Aborted?
|
||||
*/
|
||||
postRideCallback?: (index: number, currentTip: JQuery, isAborted?: boolean) => void;
|
||||
|
||||
/**
|
||||
* A method to call after each step
|
||||
* @method
|
||||
* @param {number} index Current Tip Index
|
||||
* @param {JQuery} currentTip Current Tip object
|
||||
* @param {boolean} isAborted Is Aborted?
|
||||
*/
|
||||
postStepCallback?: (index: number, currentTip: JQuery, isAborted?: boolean) => void;
|
||||
|
||||
/**
|
||||
* A method to call before each step
|
||||
* @method
|
||||
* @param {number} index Tip Index
|
||||
* @param {JQuery} nextTip Tip object
|
||||
* @param {JQuery} el Element
|
||||
*/
|
||||
preStepCallback?: (index: number, nextTip: JQuery, el?: JQuery) => void;
|
||||
|
||||
/**
|
||||
* HTML segments for tip layout
|
||||
* @member {JoyrideTemplate}
|
||||
*/
|
||||
template?: JoyrideTemplate;
|
||||
}
|
||||
|
||||
interface Joyride
|
||||
{
|
||||
/**
|
||||
* Default function, no options
|
||||
* @method
|
||||
* @return {JQuery} JQuery instance
|
||||
*/
|
||||
(): JQuery;
|
||||
|
||||
/**
|
||||
* Function with options
|
||||
* @method
|
||||
* @param {JoyrideOptions} options An object with all the joyride options you want to overwrite.
|
||||
* @return {JQuery} JQuery instance
|
||||
*/
|
||||
(options: JoyrideOptions): JQuery;
|
||||
|
||||
/**
|
||||
* Function with method name and params
|
||||
* @method
|
||||
* @param {string} methodName Name of method to call.
|
||||
* @param {any[]} params parameters for method
|
||||
* @return {JQuery} JQuery instance
|
||||
*/
|
||||
(methodName: string, ...params: any[]): JQuery;
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
/**
|
||||
* joyride function
|
||||
* @return {Joyride} Joyride instance.
|
||||
*/
|
||||
joyride: Joyride;
|
||||
/**
|
||||
* Modal template
|
||||
* @member {string}
|
||||
*/
|
||||
modal?: string;
|
||||
|
||||
/**
|
||||
* Exposed Cover template
|
||||
* @member {string}
|
||||
*/
|
||||
exposeCover?: string;
|
||||
}
|
||||
|
||||
interface JoyrideOptions {
|
||||
/**
|
||||
* Version
|
||||
* @member {string}
|
||||
*/
|
||||
version?: string;
|
||||
|
||||
/**
|
||||
* 'top' or 'bottom' in relation to parent
|
||||
* @member {string}
|
||||
*/
|
||||
tipLocation?: string;
|
||||
|
||||
/**
|
||||
* override on a per tooltip bases
|
||||
* @member {any}
|
||||
*/
|
||||
nubPosition?: any;
|
||||
|
||||
/**
|
||||
* whether to scroll to tips
|
||||
* @member {boolean}
|
||||
*/
|
||||
scroll?: boolean;
|
||||
|
||||
/**
|
||||
* Page scrolling speed in ms
|
||||
* @member {number}
|
||||
*/
|
||||
scrollSpeed?: number;
|
||||
|
||||
/**
|
||||
* 0 = off, all other numbers = time(ms)
|
||||
* @member {number}
|
||||
*/
|
||||
timer?: number;
|
||||
|
||||
/**
|
||||
* true or false - false tour starts when restart called
|
||||
* @member {boolean}
|
||||
*/
|
||||
autoStart?: boolean;
|
||||
|
||||
/**
|
||||
* true/false to start timer on first click
|
||||
* @member {boolean}
|
||||
*/
|
||||
startTimerOnClick?: boolean;
|
||||
|
||||
/**
|
||||
* the index of the tooltip you want to start on (index of the li)
|
||||
* @member {number}
|
||||
*/
|
||||
startOffset?: number;
|
||||
|
||||
/**
|
||||
* true/false for next button visibility
|
||||
* @member {boolean}
|
||||
*/
|
||||
nextButton?: boolean;
|
||||
|
||||
/**
|
||||
* 'pop' or 'fade' in each tip
|
||||
* @member {string}
|
||||
*/
|
||||
tipAnimation?: string;
|
||||
|
||||
/**
|
||||
* array of indexes where to pause the tour after
|
||||
* @member {any[]}
|
||||
*/
|
||||
pauseAfter?: any[];
|
||||
|
||||
/**
|
||||
* if 'fade'- speed in ms of transition
|
||||
* @member {number}
|
||||
*/
|
||||
tipAnimationFadeSpeed?: number;
|
||||
|
||||
/**
|
||||
* true/false for whether cookies are used
|
||||
* @member {boolean}
|
||||
*/
|
||||
cookieMonster?: boolean;
|
||||
|
||||
/**
|
||||
* choose your own cookie name
|
||||
* member {string}
|
||||
*/
|
||||
cookieName?: string;
|
||||
|
||||
/**
|
||||
* Will this cookie be attached to a domain, ie. '.notableapp.com'
|
||||
* @member {any}
|
||||
*/
|
||||
cookieDomain?: any;
|
||||
|
||||
/**
|
||||
* Set to '/' if you want the cookie for the whole website
|
||||
* @member {any}
|
||||
*/
|
||||
cookiePath?: any;
|
||||
|
||||
/**
|
||||
* true or false to control whether localstorage is used
|
||||
* @member {boolean}
|
||||
*/
|
||||
localStorage?: boolean;
|
||||
|
||||
/**
|
||||
* Keyname in localstorage
|
||||
@member {string}
|
||||
*/
|
||||
localStorageKey?: string;
|
||||
|
||||
/**
|
||||
* Where the tip be attached if not inline
|
||||
* @member {HTMLElement}
|
||||
*/
|
||||
tipContainer?: HTMLElement;
|
||||
|
||||
/**
|
||||
* Whether to cover page with modal during the tour
|
||||
* @member {boolean}
|
||||
*/
|
||||
modal?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to expose the elements at each step in the tour (requires modal:true)
|
||||
* @member {boolean}
|
||||
*/
|
||||
expose?: boolean;
|
||||
|
||||
/**
|
||||
* A method to call after an element has been exposed
|
||||
* @method
|
||||
* @param {number} index Tip Index
|
||||
* @param {JQuery} nextTip Tip object
|
||||
* @param {JQuery} el Element
|
||||
*/
|
||||
postExposeCallback?: (index: number, nextTip: JQuery, el?: JQuery) => void;
|
||||
|
||||
/**
|
||||
* A method to call before the tour starts (passed index, tip, and cloned exposed element)
|
||||
* @method
|
||||
* @param {number} index Current Tip Index
|
||||
* @param {JQuery} currentTip Current Tip object
|
||||
* @param {JQuery} el Element
|
||||
*/
|
||||
preRideCallback?: (index: number, currentTip: JQuery, el?: JQuery) => void;
|
||||
|
||||
/**
|
||||
* a method to call once the tour closes
|
||||
* @method
|
||||
* @param {number} index Current Tip Index
|
||||
* @param {JQuery} currentTip Current Tip object
|
||||
* @param {boolean} isAborted Is Aborted?
|
||||
*/
|
||||
postRideCallback?: (index: number, currentTip: JQuery, isAborted?: boolean) => void;
|
||||
|
||||
/**
|
||||
* A method to call after each step
|
||||
* @method
|
||||
* @param {number} index Current Tip Index
|
||||
* @param {JQuery} currentTip Current Tip object
|
||||
* @param {boolean} isAborted Is Aborted?
|
||||
*/
|
||||
postStepCallback?: (index: number, currentTip: JQuery, isAborted?: boolean) => void;
|
||||
|
||||
/**
|
||||
* A method to call before each step
|
||||
* @method
|
||||
* @param {number} index Tip Index
|
||||
* @param {JQuery} nextTip Tip object
|
||||
* @param {JQuery} el Element
|
||||
*/
|
||||
preStepCallback?: (index: number, nextTip: JQuery, el?: JQuery) => void;
|
||||
|
||||
/**
|
||||
* HTML segments for tip layout
|
||||
* @member {JoyrideTemplate}
|
||||
*/
|
||||
template?: JoyrideTemplate;
|
||||
}
|
||||
|
||||
interface Joyride {
|
||||
/**
|
||||
* Default function, no options
|
||||
* @method
|
||||
* @return {JQuery} JQuery instance
|
||||
*/
|
||||
(): JQuery;
|
||||
|
||||
/**
|
||||
* Function with options
|
||||
* @method
|
||||
* @param {JoyrideOptions} options An object with all the joyride options you want to overwrite.
|
||||
* @return {JQuery} JQuery instance
|
||||
*/
|
||||
(options: JoyrideOptions): JQuery;
|
||||
|
||||
/**
|
||||
* Function with method name and params
|
||||
* @method
|
||||
* @param {string} methodName Name of method to call.
|
||||
* @param {any[]} params parameters for method
|
||||
* @return {JQuery} JQuery instance
|
||||
*/
|
||||
(methodName: string, ...params: any[]): JQuery;
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
/**
|
||||
* joyride function
|
||||
* @return {Joyride} Joyride instance.
|
||||
*/
|
||||
joyride: Joyride;
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+97
-75
@@ -3,79 +3,101 @@
|
||||
// Definitions by: Daisuke Mino <https://github.com/minodisk>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface Loop {
|
||||
begin?: number;
|
||||
end?: number;
|
||||
step?: number;
|
||||
import $ = require('jquery');
|
||||
|
||||
declare global {
|
||||
interface Loop {
|
||||
begin?: number;
|
||||
end?: number;
|
||||
step?: number;
|
||||
}
|
||||
|
||||
interface ConnectOption {
|
||||
target: any;
|
||||
args?: any[];
|
||||
ok?: number;
|
||||
ng?: number;
|
||||
}
|
||||
|
||||
interface RetryOption {
|
||||
wait: number;
|
||||
}
|
||||
|
||||
interface DeferredizedFunction { (...arg: any[]): Deferred; }
|
||||
interface DeferredizedFunctionWithNumber { (n: number): Deferred; }
|
||||
interface FunctionWithNumber { (i: number, o?: any): any; }
|
||||
interface ErrorCallback { (d: Deferred, ...args: any[]): any; }
|
||||
|
||||
class Deferred {
|
||||
|
||||
static methods: string[];
|
||||
|
||||
static isDeferred(obj: any): boolean;
|
||||
|
||||
static next(fun: Function): Deferred;
|
||||
|
||||
static chain(...args: any[]): Deferred;
|
||||
|
||||
static wait(n: number): Deferred;
|
||||
|
||||
static call(fun?: Function, ...args: any[]): Deferred;
|
||||
|
||||
static parallel(dl: any): Deferred;
|
||||
|
||||
static earlier(dl: any): Deferred;
|
||||
|
||||
static loop(n: number, fun: FunctionWithNumber): Deferred;
|
||||
static loop(n: Loop, fun: FunctionWithNumber): Deferred;
|
||||
|
||||
static repeat(n: number, fun: FunctionWithNumber): Deferred;
|
||||
|
||||
static register(name: string, fun: DeferredizedFunction): void;
|
||||
|
||||
static connect(funo: any, options: string): DeferredizedFunction;
|
||||
static connect(funo: Function, options?: ConnectOption): DeferredizedFunction;
|
||||
|
||||
static retry(retryCount: number, funcDeferred: DeferredizedFunctionWithNumber, options?: RetryOption): Deferred;
|
||||
|
||||
static define(obj?: any, list?: string[]): any;
|
||||
|
||||
constructor();
|
||||
|
||||
next(fun: Function): Deferred;
|
||||
|
||||
wait(n: number): Deferred;
|
||||
|
||||
error(fun: ErrorCallback): Deferred;
|
||||
|
||||
call(val?: any): Deferred;
|
||||
|
||||
fail(err: any): Deferred;
|
||||
|
||||
cancel(): Deferred;
|
||||
|
||||
parallel(dl: any): Deferred;
|
||||
|
||||
loop(n: number, fun: FunctionWithNumber): Deferred;
|
||||
loop(n: Loop, fun: FunctionWithNumber): Deferred;
|
||||
}
|
||||
|
||||
interface JQueryXHR {
|
||||
next(fun: Function): Deferred;
|
||||
}
|
||||
|
||||
function chain(...args: any[]): Deferred;
|
||||
|
||||
function wait(n: number): Deferred;
|
||||
|
||||
function call(fun?: Function, ...args: any[]): Deferred;
|
||||
|
||||
function parallel(dl: any): Deferred;
|
||||
|
||||
function earlier(dl: any): Deferred;
|
||||
|
||||
function loop(n: number, fun: FunctionWithNumber): Deferred;
|
||||
function loop(n: Loop, fun: FunctionWithNumber): Deferred;
|
||||
|
||||
function repeat(n: number, fun: FunctionWithNumber): Deferred;
|
||||
|
||||
function next(fun: Function): Deferred;
|
||||
}
|
||||
|
||||
interface ConnectOption {
|
||||
target: any;
|
||||
args?: any[];
|
||||
ok?: number;
|
||||
ng?: number;
|
||||
}
|
||||
|
||||
interface RetryOption {
|
||||
wait: number;
|
||||
}
|
||||
|
||||
interface DeferredizedFunction { (...arg: any[]): Deferred; }
|
||||
interface DeferredizedFunctionWithNumber { (n: number): Deferred; }
|
||||
interface FunctionWithNumber { (i: number, o?: any): any; }
|
||||
interface ErrorCallback { (d: Deferred, ...args: any[]): any; }
|
||||
|
||||
declare class Deferred {
|
||||
|
||||
static methods: string[];
|
||||
static isDeferred(obj: any): boolean;
|
||||
static next(fun: Function): Deferred;
|
||||
static chain(...args: any[]): Deferred;
|
||||
static wait(n: number): Deferred;
|
||||
static call(fun?: Function, ...args: any[]): Deferred;
|
||||
static parallel(dl: any): Deferred;
|
||||
static earlier(dl: any): Deferred;
|
||||
|
||||
static loop(n: number, fun: FunctionWithNumber): Deferred;
|
||||
static loop(n: Loop, fun: FunctionWithNumber): Deferred;
|
||||
|
||||
static repeat(n: number, fun: FunctionWithNumber): Deferred;
|
||||
static register(name: string, fun: DeferredizedFunction): void;
|
||||
|
||||
static connect(funo: any, options: string): DeferredizedFunction;
|
||||
static connect(funo: Function, options?: ConnectOption): DeferredizedFunction;
|
||||
|
||||
static retry(retryCount: number, funcDeferred: DeferredizedFunctionWithNumber, options?: RetryOption): Deferred;
|
||||
static define(obj?: any, list?: string[]): any;
|
||||
|
||||
constructor();
|
||||
|
||||
next(fun: Function): Deferred;
|
||||
wait(n: number): Deferred;
|
||||
error(fun: ErrorCallback): Deferred;
|
||||
call(val?: any): Deferred;
|
||||
fail(err: any): Deferred;
|
||||
cancel(): Deferred;
|
||||
parallel(dl: any): Deferred;
|
||||
|
||||
loop(n: number, fun: FunctionWithNumber): Deferred;
|
||||
loop(n: Loop, fun: FunctionWithNumber): Deferred;
|
||||
}
|
||||
|
||||
interface JQueryXHR {
|
||||
next(fun: Function): Deferred;
|
||||
}
|
||||
|
||||
declare function chain(...args: any[]): Deferred;
|
||||
declare function wait(n: number): Deferred;
|
||||
declare function call(fun?: Function, ...args: any[]): Deferred;
|
||||
declare function parallel(dl: any): Deferred;
|
||||
declare function earlier(dl: any): Deferred;
|
||||
|
||||
declare function loop(n: number, fun: FunctionWithNumber): Deferred;
|
||||
declare function loop(n: Loop, fun: FunctionWithNumber): Deferred;
|
||||
|
||||
declare function repeat(n: number, fun: FunctionWithNumber): Deferred;
|
||||
|
||||
declare function next(fun: Function): Deferred;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user