diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index f8b05ea75..2fd4ff9cb 100644 --- a/jquery/jquery-tests.ts +++ b/jquery/jquery-tests.ts @@ -1239,7 +1239,7 @@ function test_extend() { var defaults = { validate: false, limit: 5, name: "foo" }; var options = { validate: true, name: "bar" }; - var settings = $.extend({}, defaults, options); + var settings: typeof defaults = $.extend({}, defaults, options); } function test_fadeIn() { @@ -2331,4 +2331,4 @@ $.ajax({ success: function (data) { alert(data); } -}); \ No newline at end of file +}); diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index b8f67f32b..2ef4bb580 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -324,8 +324,8 @@ interface JQueryStatic { each(collection: JQuery, callback: (indexInArray: number, valueOfElement: HTMLElement) => any): any; each(collection: T[], callback: (indexInArray: number, valueOfElement: T) => any): any; - extend(target: any, ...objs: any[]): Object; - extend(deep: boolean, target: any, ...objs: any[]): Object; + extend(target: any, ...objs: any[]): any; + extend(deep: boolean, target: any, ...objs: any[]): any; globalEval(code: string): any;