From 663624b659c901c621225952175e93e23ba46930 Mon Sep 17 00:00:00 2001 From: Anand Prakash Date: Mon, 27 Jan 2014 16:32:12 -0800 Subject: [PATCH] Changed JQueryAjaxSettings.jsonp to any We can not only pass a string in jsonp to be used as callback function query parameter name but also false to skip including the callback parameter at all. http://api.jquery.com/jQuery.ajax/ --- jquery/jquery.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index 8ac14892f..2b4268da5 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -99,7 +99,7 @@ interface JQueryAjaxSettings { /** * Override the callback function name in a jsonp request. This value will be used instead of 'callback' in the 'callback=?' part of the query string in the url. So {jsonp:'onJSONPLoad'} would result in 'onJSONPLoad=?' passed to the server. As of jQuery 1.5, setting the jsonp option to false prevents jQuery from adding the "?callback" string to the URL or attempting to use "=?" for transformation. In this case, you should also explicitly set the jsonpCallback setting. For example, { jsonp: false, jsonpCallback: "callbackName" } */ - jsonp?: string; + jsonp?: any; /** * Specify the callback function name for a JSONP request. This value will be used instead of the random name automatically generated by jQuery. It is preferable to let jQuery generate a unique name as it'll make it easier to manage the requests and provide callbacks and error handling. You may want to specify the callback when you want to enable better browser caching of GET requests. As of jQuery 1.5, you can also use a function for this setting, in which case the value of jsonpCallback is set to the return value of that function. */