I've started to rewrite some of my Javascript code in Typescript to learn how Typescript works. However I'm at a point where the Type annotations make some trouble.
I try to get a file from an input field, in Javascript I do
var file = document.getElementById('upload_files').files[0];
what I now try to write in typescript but I can't figure out, how I've to cast to access the .files
property in Typescript.