mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 13:27:15 +08:00
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:
1
jquery/jquery-1.8.d.ts
vendored
1
jquery/jquery-1.8.d.ts
vendored
@@ -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;
|
||||
|
||||
/***
|
||||
|
||||
Reference in New Issue
Block a user