I am writing a web application using Angular 4 and Typescript. I need the date of a file to upload and try to use the File objects lastModified property, but Typescript gives me an error
Property 'lastModified' does not exist on type 'File'.
If I look in the definition it instead have the lastModifiedDate as a property. According to https://developer.mozilla.org/en-US/docs/Web/API/File/lastModifiedDate that property is depriciated. I have however tried it and it works in Chrome, but fails in Safari.
How can I use File lastModified property from Typescript?