18 lines
449 B
TypeScript
18 lines
449 B
TypeScript
declare module "xmlhttprequest" {
|
|
export class XMLHttpRequest {
|
|
readyState: number;
|
|
status: number;
|
|
responseText: string;
|
|
|
|
constructor();
|
|
open(method: string, url: string, async?: boolean): void;
|
|
setRequestHeader(key: string, value: string): void;
|
|
send(body?: string): void;
|
|
abort(): void;
|
|
|
|
onreadystatechange: () => void;
|
|
onerror: (error: Error) => void;
|
|
}
|
|
}
|
|
|