mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
global XMLHttpRequest declaration extended
This commit is contained in:
@ -134,7 +134,7 @@ export var test_XMLHttpRequest_FormDataContentSentAndReceivedProperly = function
|
||||
data.append("MyVariableOne", "ValueOne");
|
||||
data.append("MyVariableTwo", "ValueTwo");
|
||||
|
||||
xhr.send(<any>data);
|
||||
xhr.send(data);
|
||||
};
|
||||
|
||||
export var test_XMLHttpRequest_abortShouldCancelonreadystatechange = function (done) {
|
||||
|
4
declarations.d.ts
vendored
4
declarations.d.ts
vendored
@ -1,4 +1,8 @@
|
||||
/* tslint:disable:no-unused-variable */
|
||||
interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
|
||||
send(data?: FormData): void;
|
||||
}
|
||||
|
||||
interface Console {
|
||||
time(reportName: string): void;
|
||||
timeEnd(reportName: string): void;
|
||||
|
Reference in New Issue
Block a user