Add dom declarations used by harness

This commit is contained in:
Andy Hanson 2017-01-12 14:25:24 -08:00
parent b40613c4d7
commit d630980f79

View File

@ -40,8 +40,22 @@ declare namespace NodeJS {
ActiveXObject: typeof ActiveXObject;
}
}
declare var window: {};
declare var XMLHttpRequest: {
new(): XMLHttpRequest;
}
interface XMLHttpRequest {
readonly readyState: number;
readonly responseText: string;
readonly status: number;
open(method: string, url: string, async?: boolean, user?: string, password?: string): void;
send(data?: string): void;
setRequestHeader(header: string, value: string): void;
}
/* tslint:enable:no-var-keyword */
namespace Utils {
// Setup some globals based on the current environment
export const enum ExecutionEnvironment {