@lvce-editor/rpc-registry 7.4.0 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface PositionAtCursor {
|
|
|
32
32
|
readonly y: number;
|
|
33
33
|
}
|
|
34
34
|
export interface DisposableMockRpc extends MockRpc {
|
|
35
|
-
[Symbol.dispose]: void;
|
|
35
|
+
[Symbol.dispose]: () => void;
|
|
36
36
|
}
|
|
37
37
|
declare const dispose$3: () => Promise<void>, invoke$3: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$3: (method: string, ...params: readonly unknown[]) => Promise<any>, registerMockRpc: (commandMap: Record<string, any>) => DisposableMockRpc, set$3: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
38
38
|
declare const sendMessagePortToExtensionHostWorker: (port: MessagePort) => Promise<void>;
|
|
@@ -19,7 +19,7 @@ export const create = (rpcId) => {
|
|
|
19
19
|
// @ts-ignore
|
|
20
20
|
return rpc.invokeAndTransfer(method, ...params);
|
|
21
21
|
},
|
|
22
|
-
registerMockRpc(
|
|
22
|
+
registerMockRpc(commandMap) {
|
|
23
23
|
const mockRpc = createMockRpc({ commandMap });
|
|
24
24
|
RpcRegistry.set(rpcId, mockRpc);
|
|
25
25
|
// @ts-ignore
|