I got a solution, this worked for me:
Use the JQueryStatic interface to statically access jQuery, for example $ .jGrowl (...) or jQuery.jGrowl (...) or in your case jQuery.toggleVisibility ():
interface JQueryStatic { ajaxSettings: any; jGrowl(object?, f?): JQuery; }
And for your own custom functions that you use with jQuery.fn.extend, use the jQuery interface:
interface JQuery { fileinput(object?): void;
Additionally, here are my advanced jQuery features:
jQuery.fn.extend({ disable: function () { return this.each(function () { this.disabled = true; }); }, enable: function () { return this.each(function () { this.disabled = false; }); }, check: function (checked) { if (checked) { $(this).parent().addClass('checked'); } else { $(this).parent().removeClass('checked'); } return this.prop('checked', checked); }, select_custom: function (value) { $(this).find('.dropdown-menu li').each(function () { if ($(this).attr('value') == value) { $(this).click(); return; } }); } });
source share