For example:
let $div = $("div");
let $p = $("p");
$div.html($p);
This is producing the following error message:
Supplied parameters do not match any signature of call target.
UPDATE: In plain JavaScript/jQuery, the code is working. An equivalent (in final result) to the following (still in TypeScript):
let $div = $("div");
let $p = $("p");
$div.html("").append($p);
Is the TypeScript definition of JQuery.html()
incorrect or did I make a mistake somewhere?