Overload jQuery val() function to accept argument of type number.

Otherwise, it is necessary to call .toString() on the number when passing.
This commit is contained in:
Dan Ludwig
2012-12-26 09:28:04 +01:00
committed by Damiano
parent febb80a323
commit 410843e396
+1
View File
@@ -369,6 +369,7 @@ interface JQuery {
val(): any;
val(value: string[]): JQuery;
val(value: string): JQuery;
val(value: number): JQuery;
val(func: (index: any, value: any) => any): JQuery;
/***