Skip to content

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

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

Description

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'.

Activity

  1. kitsonk commented on Oct 11, 2016

    @kitsonk
    Contributor

    These typings come from TSJS-lib-generator where contributions are greatly welcomed.

  2. quyin commented on Oct 11, 2016

    @quyin
    Author

    Kitson Kelly (@kitsonk) Thanks for the information!

  3. added
    Bug
    Domain: lib.d.ts
    on Oct 11, 2016
  4. added this to the milestone on Oct 11, 2016
  5. modified the milestones: TypeScript 2.1, on Oct 13, 2016
  6. added
    Fixed in TSJS repo
    and removed on Oct 21, 2016
  7. modified the milestones: TypeScript 2.1, on Oct 27, 2016
  8. added
    Fixed
    and removed
    Fixed in TSJS repo
    on Oct 31, 2016
  9. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDomain: lib.d.tsFixed

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions