Where can I get the latest typescript JQuery definition file from?

typescript

Solution

Update! The Definitely Typed project is now the correct place to grab your definitions - and Microsoft are now actively involved with Definitely Typed.

The very latest official typing for jQuery can be found on the TypeScript Codeplex site. (project has moved).

I believe the definition is currently:

ajax(url: string, settings: JQueryAjaxSettings);

This is correct, but it is not the only variation of the `ajax` function, it should really be overloaded with a definition for:

ajax(settings: JQueryAjaxSettings);

You could add support to this in your own code by adding your own extension on top of the TypeScript jquery.d.ts definition and remove this when the jquery.d.ts file gets updated - when it is, you'll get a build warning about a duplicate definition to remind you to do this.

declare interface JQueryStatic {
    ajax(settings: JQueryAjaxSettings);
}

Problem

I know there are some problems with the definition file that I have already downloaded. For example here with the following $.ajax call: ``` $.ajax("/Admin/xx", { cache: false }) ``` Note that I need to specify the URL first. I recall reading that this was understood as an error. Where can I get the latest JQuery definition file from. Anyone have any news as to when Microsoft will come out with an update to the Alpha version of Typescript that they have now?

Original source