mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
Add optional jQueryAlias to $(callback) and $().ready(callback).
This commit is contained in:
16
DefinitelyTyped.sln
Normal file
16
DefinitelyTyped.sln
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.31101.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "jquery", "jquery", "{0F6EC0BB-B970-4DA2-84BD-E851D33A4EE7}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
jquery\jquery-tests.ts = jquery\jquery-tests.ts
|
||||
jquery\jquery.d.ts = jquery\jquery.d.ts
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
22
jquery/jquery.d.ts
vendored
22
jquery/jquery.d.ts
vendored
@@ -725,30 +725,42 @@ interface JQueryStatic {
|
||||
* @param context A DOM Element, Document, or jQuery to use as context
|
||||
*/
|
||||
(selector: string, context?: Element|JQuery): JQuery;
|
||||
|
||||
/**
|
||||
* Accepts a string containing a CSS selector which is then used to match a set of elements.
|
||||
*
|
||||
* @param element A DOM element to wrap in a jQuery object.
|
||||
*/
|
||||
(element: Element): JQuery;
|
||||
|
||||
/**
|
||||
* Accepts a string containing a CSS selector which is then used to match a set of elements.
|
||||
*
|
||||
* @param elementArray An array containing a set of DOM elements to wrap in a jQuery object.
|
||||
*/
|
||||
(elementArray: Element[]): JQuery;
|
||||
|
||||
/**
|
||||
* Binds a function to be executed when the DOM has finished loading.
|
||||
*
|
||||
* @param callback A function to execute after the DOM is ready.
|
||||
*/
|
||||
(callback: (jQueryAlias?: JQueryStatic) => any): JQuery;
|
||||
|
||||
/**
|
||||
* Accepts a string containing a CSS selector which is then used to match a set of elements.
|
||||
*
|
||||
* @param object A plain object to wrap in a jQuery object.
|
||||
*/
|
||||
(object: {}): JQuery;
|
||||
|
||||
/**
|
||||
* Accepts a string containing a CSS selector which is then used to match a set of elements.
|
||||
*
|
||||
* @param object An existing jQuery object to clone.
|
||||
*/
|
||||
(object: JQuery): JQuery;
|
||||
|
||||
/**
|
||||
* Specify a function to execute when the DOM is fully loaded.
|
||||
*/
|
||||
@@ -761,6 +773,7 @@ interface JQueryStatic {
|
||||
* @param ownerDocument A document in which the new elements will be created.
|
||||
*/
|
||||
(html: string, ownerDocument?: Document): JQuery;
|
||||
|
||||
/**
|
||||
* Creates DOM elements on the fly from the provided string of raw HTML.
|
||||
*
|
||||
@@ -769,13 +782,6 @@ interface JQueryStatic {
|
||||
*/
|
||||
(html: string, attributes: Object): JQuery;
|
||||
|
||||
/**
|
||||
* Binds a function to be executed when the DOM has finished loading.
|
||||
*
|
||||
* @param callback A function to execute after the DOM is ready.
|
||||
*/
|
||||
(callback: Function): JQuery;
|
||||
|
||||
/**
|
||||
* Relinquish jQuery's control of the $ variable.
|
||||
*
|
||||
@@ -2352,7 +2358,7 @@ interface JQuery {
|
||||
*
|
||||
* @param handler A function to execute after the DOM is ready.
|
||||
*/
|
||||
ready(handler: Function): JQuery;
|
||||
ready(handler: (jQueryAlias?: JQueryStatic) => any): JQuery;
|
||||
|
||||
/**
|
||||
* Trigger the "resize" event on an element.
|
||||
|
||||
Reference in New Issue
Block a user