Files
xOld_appRoboticsDriver/node_modules/jayson/lib/client/browser/index.d.ts
2025-12-27 20:24:47 +01:00

15 lines
786 B
TypeScript

import * as jayson from '../../..';
type ClientBrowserCallServerFunctionCallback = (err?:Error | null, response?:string) => void;
type ClientBrowserCallServerFunction = (request:string, callback:ClientBrowserCallServerFunctionCallback) => void;
declare class ClientBrowser {
constructor(callServer:ClientBrowserCallServerFunction, options:jayson.ClientOptions);
request(method: string, params: jayson.RequestParamsLike, id?: string | null, callback?: jayson.JSONRPCCallbackType): jayson.JSONRPCRequest;
request(method: string, params: jayson.RequestParamsLike, callback?: jayson.JSONRPCCallbackType): jayson.JSONRPCRequest;
request(method: Array<jayson.JSONRPCRequestLike>, callback: jayson.JSONRPCCallbackTypeBatch): Array<jayson.JSONRPCRequest>;
}
export = ClientBrowser;