@arkts/headless-jsonrpc
Version:
Simple and Fast headless JSON-RPC communication libraries support advanced features such as retry and timeout.
15 lines (14 loc) • 793 B
TypeScript
import { Arrayable, ConnectionAdapter, JSONRPC } from "./connection-DMjPZGJA.js";
import { ExtensionContext, Webview } from "vscode";
//#region src/adapters/vscode-webview.d.ts
interface VSCodeWebviewAdapterOptions {
webview: Webview;
context?: ExtensionContext;
serialize?(data: Arrayable<JSONRPC.Event>): any;
deserialize?(data: any): Arrayable<JSONRPC.Event>;
}
declare function createVSCodeWebviewAdapter(webview: Webview, context?: ExtensionContext, extraOptions?: Omit<VSCodeWebviewAdapterOptions, "webview" | "context">): ConnectionAdapter;
declare function createVSCodeWebviewAdapter(options: VSCodeWebviewAdapterOptions): ConnectionAdapter;
//#endregion
export { VSCodeWebviewAdapterOptions, createVSCodeWebviewAdapter };
//# sourceMappingURL=vscode-webview-DRaL5A65.d.ts.map