Note: you need to install the jquery.d.ts file for these tips
jquery.d.ts
Just create jquery-foo.d.ts with:
jquery-foo.d.ts
interface JQuery { foo: any; }
And now you can use $('something').foo({whateverYouWant:'hello jquery plugin'})
$('something').foo({whateverYouWant:'hello jquery plugin'})
Last updated 6 years ago