In an external .ts file I am adding a method to jquery like so:
$.fn.serializeObject = function () {
//do stuff
return stuff;
};
I would like to add this new method to the typescript definitions for jquery from within this file, rather than adding it to jquery.d.ts, in this way I will maintain this new method definition even if I update jquery and it's type definition file later.
Is this possible?