jQuery: added typing for fn

This commit is contained in:
John Reilly
2014-01-17 09:27:10 +00:00
parent 02348d3eb0
commit daca31dc77
2 changed files with 56 additions and 4 deletions
+25 -4
View File
@@ -778,12 +778,33 @@ interface JQueryStatic {
Event: JQueryEventConstructor;
// Internals
error(message: any): JQuery;
/**
* Takes a string and throws an exception containing it.
*
* @param message The message to send out.
*/
error(message: string): JQuery;
// Miscellaneous
expr: any;
fn: any; //TODO: Decide how we want to type this
fn: {
/**
* A string containing the jQuery version number.
*/
jquery: string;
/**
* The number of elements in the jQuery object.
*/
length: number;
/**
* Merge the contents of an object onto the jQuery prototype to provide new jQuery instance methods.
*
* @param object An object to merge onto the jQuery prototype.
*/
extend(object: any): any;
}
isReady: boolean;
// Properties