mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
jQuery: Add even more specific val setters
This commit is contained in:
24
jquery/jquery.d.ts
vendored
24
jquery/jquery.d.ts
vendored
@@ -1512,19 +1512,37 @@ 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: string) => any): JQuery;
|
||||
val(func: (index: number, value: string) => string): 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;
|
||||
val(func: (index: number, value: string[]) => string): 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;
|
||||
val(func: (index: number, value: number) => string): 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) => string[]): 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[]) => string[]): 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) => string[]): JQuery;
|
||||
|
||||
/**
|
||||
* Get the value of style properties for the first element in the set of matched elements.
|
||||
|
||||
Reference in New Issue
Block a user