jQuery: Add more specific val setters

This commit is contained in:
John Reilly
2014-04-29 13:48:00 +01:00
parent 6834f97fb3
commit 7c8a67a402

14
jquery/jquery.d.ts vendored
View File

@@ -1512,7 +1512,19 @@ interface JQuery {
*
* @param func A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments.
*/
val(func: (index: number, value: any) => any): JQuery;
val(func: (index: number, value: string) => any): JQuery;
/**
* Set the value of each element in the set of matched elements.
*
* @param func A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments.
*/
val(func: (index: number, value: string[]) => any): JQuery;
/**
* Set the value of each element in the set of matched elements.
*
* @param func A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments.
*/
val(func: (index: number, value: number) => any): JQuery;
/**
* Get the value of style properties for the first element in the set of matched elements.