Skip to content

Built-in type declaration for XMLHttpRequest is missing a readonly property 'responseURL' #11510

Closed
microsoft/TypeScript-DOM-lib-generator
#154
@quyin

Description

@quyin

TypeScript Version: 2.0.3

Code

let xhr = new XMLHttpRequest();
console.log(xhr.responseURL);

Expected behavior:

The compiler should be able to compile the code without errors.

Here is the MDN documentation for this property.

Actual behavior:

tsc complains:

error TS2339: Property 'responseURL' does not exist on type 'XMLHttpRequest'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions