Open
Description
/**
* @param {Image} i
* @param {Element} l
*/
function f(i, l) {
l.appendChild(i);
i.style.display = 'none';
}
Expected: i
should (1) have type Image
(2) be assignable to Node and (3) should have the property style
.
Actual: i: new (width?: number, height?: number) => HTMLImageElement
, which is not assignable to Node and doesn't have the property style
.