I have the following code:
function submitSuccessAccess() {
$(".accessLink")
.attr("data-disabled", "no");
window.location.reload();
}
I am trying to call this function like this:
submitSuccessAccess();
However I get a red underline under submitSuccessAccess saying: supplied parameters do not match any signature of call target. Seems like the submitSuccessAccess is expecting:
(eventObject: JQueryEventObject) => any
I found a temporary solution. I define and use as follows:
function submitSuccessAccess(any) {
$(".accessLink")
.attr("data-disabled", "no");
window.location.reload();
}
submitSuccessAccess(null);
Am I the only one to experience anything like this?