mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
jQuery: expanded text to cover number and boolean
following input from @dmethvin
This commit is contained in:
Vendored
+14
-2
@@ -3086,9 +3086,21 @@ interface JQuery {
|
||||
/**
|
||||
* Set the content of each element in the set of matched elements to the specified text.
|
||||
*
|
||||
* @param textString A string of text to set as the content of each matched element.
|
||||
* @param text The text to set as the content of each matched element.
|
||||
*/
|
||||
text(textString: string): JQuery;
|
||||
text(text: string): JQuery;
|
||||
/**
|
||||
* Set the content of each element in the set of matched elements to the specified text.
|
||||
*
|
||||
* @param text The text to set as the content of each matched element.
|
||||
*/
|
||||
text(text: number): JQuery;
|
||||
/**
|
||||
* Set the content of each element in the set of matched elements to the specified text.
|
||||
*
|
||||
* @param text The text to set as the content of each matched element.
|
||||
*/
|
||||
text(text: boolean): JQuery;
|
||||
/**
|
||||
* Set the content of each element in the set of matched elements to the specified text.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user