Skip to content

TS2339: Property 'getResponseHeader' does not exist on type 'XMLHttpRequestEventTarget'. #15101

Closed
@monolithed

Description

@monolithed
var xhr = new XMLHttpRequest();

xhr.onload = function (event) {
        this.response // Not found
	this.getResponseHeader  // Not found
        // etc
};
index.ts(30,47): error TS2339: Property 'response' does not exist on type 'XMLHttpRequestEventTarget'.
index.ts(34,16): error TS2339: Property 'getResponseHeader' does not exist on type 'XMLHttpRequestEventTarget'.

Metadata

Metadata

Assignees

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