mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Used correct types from websocket callbacks in 'jquery-jsonrpcclient'.
This commit is contained in:
+4
-4
@@ -9,10 +9,10 @@ interface JsonRpcClientOptions extends JQueryAjaxSettings {
|
||||
ajaxUrl?: string;
|
||||
headers?: {[key:string]: any};
|
||||
socketUrl?: string;
|
||||
onmessage?: () => void;
|
||||
onopen?: () => void;
|
||||
onclose?: () => void;
|
||||
onerror?: () => void;
|
||||
onmessage?: (ev: MessageEvent) => void;
|
||||
onopen?: (ev: Event) => void;
|
||||
onclose?: (ev: CloseEvent) => void;
|
||||
onerror?: (ev: Event) => void;
|
||||
getSockect?: (onmessageCb: () => void) => WebSocket;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user