diff --git a/jquery.jsonrpcclient/jquery.jsonrpcclient-tests.ts b/jquery-jsonrpcclient/jquery-jsonrpcclient-tests.ts similarity index 100% rename from jquery.jsonrpcclient/jquery.jsonrpcclient-tests.ts rename to jquery-jsonrpcclient/jquery-jsonrpcclient-tests.ts diff --git a/jquery.jsonrpcclient/jquery.jsonrpcclient.d.ts b/jquery-jsonrpcclient/jquery-jsonrpcclient.d.ts similarity index 94% rename from jquery.jsonrpcclient/jquery.jsonrpcclient.d.ts rename to jquery-jsonrpcclient/jquery-jsonrpcclient.d.ts index 2965f26f1..de008dc09 100644 --- a/jquery.jsonrpcclient/jquery.jsonrpcclient.d.ts +++ b/jquery-jsonrpcclient/jquery-jsonrpcclient.d.ts @@ -28,7 +28,7 @@ interface JsonRpcClient { * * @return {object} Returns the deferred object that $.ajax returns or {null} for websockets */ - call(method: string, params: Object | Array, successCb?: (result: any) => void, errorCb?: (result: any) => void): JQueryDeferred; + call(method: string, params: Object | Array, successCb: (result: any) => void, errorCb: (result: any) => void): JQueryDeferred; /** * Notify sends a command to the server that won't need a response. In http, there is probably @@ -62,7 +62,7 @@ interface JsonRpcClient { * Note, that batch calls should always get an overall success, and the * only error */ - batch(callback: (batch: JsonRpcClient) => void, allDoneCb?: (result: any) => void, errorCb?: (error: any) => void): void; + batch(callback: (batch: JsonRpcClient) => void, allDoneCb: (result: any) => void, errorCb: (error: any) => void): void; } interface JsonRpcClientFactory {