Skip to content

Commit d630980

Browse files
author
Andy Hanson
committed
Add dom declarations used by harness
1 parent b40613c commit d630980

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/harness/harness.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,22 @@ declare namespace NodeJS {
4040
ActiveXObject: typeof ActiveXObject;
4141
}
4242
}
43+
44+
declare var window: {};
45+
declare var XMLHttpRequest: {
46+
new(): XMLHttpRequest;
47+
}
48+
interface XMLHttpRequest {
49+
readonly readyState: number;
50+
readonly responseText: string;
51+
readonly status: number;
52+
open(method: string, url: string, async?: boolean, user?: string, password?: string): void;
53+
send(data?: string): void;
54+
setRequestHeader(header: string, value: string): void;
55+
}
4356
/* tslint:enable:no-var-keyword */
4457

58+
4559
namespace Utils {
4660
// Setup some globals based on the current environment
4761
export const enum ExecutionEnvironment {

0 commit comments

Comments
 (0)