I am using VS 2012 and TypeScript with jquery. I am converting an existing JS app into TS and I have the following problem :
$(window).load(function () {
//stuff
});
$(window).load got underlined and error is 'supplied parameters do not match any signature of call target'. I am using jquery 1.7.2 with this jquery.d.ts jquery ts annotations. I added the reference link on top of the file.
What am I doing wrong ?
Edit : I have got typescript installed in VS of course, and it doesn't change anything to edit the argument, it can be "window" or anything else, it keeps making the error. The definition of load() it expects is (url:string, data: any, complete: any) while in jQuery doc it's just a function..