It's less often used, but the same effect as exporting a global type Array.
For the most part it doesn't cause any real problems, but it introduces ambiguity, and in my IDE (IntelliJ), results in a pesky message
which in turn is resulting in me uninstalling source-map-explorer.
Feel free to close, but if you wanted to rename your File to something not already used, that'd be great.
Description In your
types.d.ts
file you have...which makes
File
globally visible. But this is also a type exported by the base DOM types ofTypeScript
, describing aFile
(https://developer.mozilla.org/en-US/docs/Web/API/File).It's less often used, but the same effect as exporting a global type
Array
.For the most part it doesn't cause any real problems, but it introduces ambiguity, and in my IDE (IntelliJ), results in a pesky message which in turn is resulting in me uninstalling
source-map-explorer
.Feel free to close, but if you wanted to rename your
File
to something not already used, that'd be great.