Skip to content

Commit 272597f

Browse files
author
Vladimir Enchev
committed
global XMLHttpRequest declaration extended
1 parent e2f464e commit 272597f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

apps/tests/xhr-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export var test_XMLHttpRequest_FormDataContentSentAndReceivedProperly = function
134134
data.append("MyVariableOne", "ValueOne");
135135
data.append("MyVariableTwo", "ValueTwo");
136136

137-
xhr.send(<any>data);
137+
xhr.send(data);
138138
};
139139

140140
export var test_XMLHttpRequest_abortShouldCancelonreadystatechange = function (done) {

declarations.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
/* tslint:disable:no-unused-variable */
2+
interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
3+
send(data?: FormData): void;
4+
}
5+
26
interface Console {
37
time(reportName: string): void;
48
timeEnd(reportName: string): void;

0 commit comments

Comments
 (0)