I'm trying to migrate simple HTML js to angular 10 which uses the .files extension like this
.files
var selectedElement = document.getElementById(id).files[0];
this is from file api how can I covert it in typescript equivalent?