I've been researching TypeScript extensively, but I'm still unsure about what type I should set for elements X and Y. Can someone help me understand how I can convert this code to TS? Thank you in advance for your assistance.
const x = document.getElementById("password-input");
const y = document.getElementById("img");
function showPass() {
if (x.type === "password") {
x.type = "text";
y.src = "png"
} else {
x.type = "password";
y.src = "png"
}
}