-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptIn DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
Attempting to define a check for HTML5 File API support in Angular like this:
private hasHtml5FileApiSupport;
constructor(@Optional() @Inject(DOCUMENT) document: Document) {
const w = document.defaultView;
this.hasHtml5FileApiSupport = w.File && w.FileReader && w.FileList && w.Blob;
However VSCode draws red squigglies under File, FileReader, and FileList
since there are not part of the Window interface. It would be nice if they were. We can still do NPE checks on them.
swilliams96
Metadata
Metadata
Assignees
Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptIn DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScript