Looking for help with this code snippet:
$.ajax({
url: modal.href,
dataType: 'json',
type: 'POST',
data: modal.$form.serializeArray()
})
.done(onSubmitDone)
.fail(onSubmitFail);
Encountering an issue where TypeScript is flagging a message at the $.ajax call, saying:
Supplied parameters do not match any signature of call target.
I've double-checked my $.ajax setup and made sure to reference the jQuery definitions correctly. Any suggestions on what might be causing this error?