ethers.js/packages/web/thirdparty.d.ts

18 lines
449 B
TypeScript
Raw Normal View History

2019-05-15 01:25:46 +03:00
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;
}
}