ethers.js/src.ts/thirdparty.d.ts

17 lines
390 B
TypeScript
Raw Normal View History

2022-09-05 23:14:43 +03:00
declare module "ws" {
export class WebSocket {
constructor(...args: Array<any>);
onopen: null | ((...args: Array<any>) => any);
onmessage: null | ((...args: Array<any>) => any);
onerror: null | ((...args: Array<any>) => any);
readyState: number;
send(payload: any): void;
close(code?: number, reason?: string): void;
}
}