Anyone know if there exists type definitions for the HTML5 File API? Specifically:
- FileList
- File
- Blob
- FileReader
Also in Angular there is a document.defaultView object that represents the window, but it does not the full Window interface with respect to the Html5 File API, so it would be necessary to cast document.defaultView to an instance that has the Window interface for the file API.
lib.dom.d.ts.Windowinterface hasFileandFileReaderproperties on it, which probably explains why Typescript complains when we attempt to use that namespace in Angular.FileandFileReaderto theWindowinterface.Windowinterface.