Make 'ajaxUrl' non-optional in 'jquery-jsonrpcclient'.

This commit is contained in:
Daniel Rosenwasser
2015-08-06 17:20:02 -07:00
parent 74528bc334
commit 4c2711f4cf
+7 -1
View File
@@ -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 {