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-06 10:49:28 -05:00
parent 1731696e41
commit e4bd0e59e0

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;
/***