mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fix jQuery prop method declaration
This commit is contained in:
Vendored
+1
-1
@@ -349,7 +349,7 @@ interface JQuery {
|
||||
html(htmlString: string): JQuery;
|
||||
html(): string;
|
||||
|
||||
prop(propertyName: string): bool;
|
||||
prop(propertyName: string): any;
|
||||
prop(propertyName: string, value: any): JQuery;
|
||||
prop(map: any): JQuery;
|
||||
prop(propertyName: string, func: (index: any, oldPropertyValue: any) => any): JQuery;
|
||||
|
||||
@@ -1133,6 +1133,7 @@ function test_prop() {
|
||||
$("input[type='checkbox']").prop({
|
||||
disabled: true
|
||||
});
|
||||
var title: string = $('option:selected', this).prop('title');
|
||||
}
|
||||
|
||||
function test_text() {
|
||||
|
||||
Reference in New Issue
Block a user