Newbie Question
I have a TypeScript file that uses an extension to jQuery:
function Something() {
$.stuff.removeAll();
}
I am trying to write a definition file for stuff, but am stuck. I tried this:
declare namespace JQueryStuff {
interface Stuff{
removeAll(): void;
}
}
interface JQueryStatic {
stuff(): JQueryStuff.Stuff;
}
TypeScript intellisence in Visual Studio picks up "Stuff" but not removeAll()