Closed
Description
TypeScript Version: 3.6.0-dev.20190807
Search Terms: window url, window blob, window property, window properties
Code
// A *self-contained* demonstration of the problem follows...
// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.
declare global {
const win: Window;
}
if (win.Blob && win.URL) {
console.log(':)');
}
export {};
Expected behavior:
Compiles without a problem.
Actual behavior:
Errors:
Property 'Blob' does not exist on type 'Window'.
Property 'URL' does not exist on type 'Window'.
Playground Link:
3.6 is not available in playground.
Related Issues:
Nope.