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

13 lines
636 B
TypeScript

import * as jayson from '../../../..';
type PromiseClientBrowserCallServerFunction = (request:string) => Promise<string>;
declare class PromiseClientBrowser {
constructor(callServer:PromiseClientBrowserCallServerFunction, options:jayson.ClientOptions);
request(method:string, params:jayson.RequestParamsLike, id:jayson.JSONRPCIDLike | undefined, shouldCall:false): jayson.JSONRPCRequest;
request(method:string, params:jayson.RequestParamsLike, id?:jayson.JSONRPCIDLike): Promise<jayson.JSONRPCResultLike>;
request(method: Array<jayson.JSONRPCRequestLike>): Promise<jayson.JSONRPCResultLike>;
}
export = PromiseClientBrowser;