diff --git a/DefinitelyTyped.sln b/DefinitelyTyped.sln new file mode 100644 index 0000000000..98daf5f12a --- /dev/null +++ b/DefinitelyTyped.sln @@ -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 diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index 61fd624422..6a7bc47c2e 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -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.