Skip to content

Window props Blob and URL do not exist in v3.6 beta/dev #32750

Closed
@bre1470

Description

@bre1470

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.Working as IntendedThe behavior described is the intended behavior; this is not a bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions