-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Milestone
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.
Metadata
Metadata
Assignees
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug