mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Make 'ajaxUrl' non-optional in 'jquery-jsonrpcclient'.
This commit is contained in:
+7
-1
@@ -6,7 +6,7 @@
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
|
||||
interface JsonRpcClientOptions extends JQueryAjaxSettings {
|
||||
ajaxUrl?: string;
|
||||
ajaxUrl: string;
|
||||
headers?: {[key:string]: any};
|
||||
socketUrl?: string;
|
||||
onmessage?: (ev: MessageEvent) => void;
|
||||
@@ -14,6 +14,12 @@ interface JsonRpcClientOptions extends JQueryAjaxSettings {
|
||||
onclose?: (ev: CloseEvent) => void;
|
||||
onerror?: (ev: Event) => void;
|
||||
getSockect?: (onmessageCb: () => void) => WebSocket;
|
||||
|
||||
/**
|
||||
* Sets timeout for calls in milliseconds.
|
||||
* Works with WebSocket as well as AJAX.
|
||||
*/
|
||||
timeout?: number;
|
||||
}
|
||||
|
||||
interface JsonRpcClient {
|
||||
|
||||
Reference in New Issue
Block a user