Merge pull request #3197 from hraban/jquery-serializearray

Specify structure $.fn.serializeArray() return val
This commit is contained in:
Masahiro Wakame
2014-11-29 14:05:19 +09:00

10
jquery/jquery.d.ts vendored
View File

@@ -629,6 +629,14 @@ interface JQueryCoordinates {
top: number;
}
/**
* Elements in the array returned by serializeArray()
*/
interface JQuerySerializeArrayElement {
name: string;
value: string;
}
interface JQueryAnimationOptions {
/**
* A string or number determining how long the animation will run.
@@ -1321,7 +1329,7 @@ interface JQuery {
/**
* Encode a set of form elements as an array of names and values.
*/
serializeArray(): Object[];
serializeArray(): JQuerySerializeArrayElement[];
/**
* Adds the specified class(es) to each of the set of matched elements.