@lvce-editor/rpc-registry 2.15.0 → 2.16.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +11 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -157,6 +157,7 @@ export interface RendererWorkerApi {
157
157
  readonly "SendMessagePortToElectron.sendMessagePortToElectron": (port: MessagePort, command: string) => Promise<void>;
158
158
  readonly "SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker": (port: MessagePort, initialCommand: string, rpcId: number) => Promise<void>;
159
159
  readonly "SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess": (port: MessagePort, outerCommand: string, rpcId: number) => Promise<void>;
160
+ readonly "SendMessagePortToFileSystemProcess.sendMessagePortToFileSystemProcess": (port: MessagePort, outerCommand: string, rpcId: number) => Promise<void>;
160
161
  readonly "Viewlet.closeWidget": (id: number | string) => Promise<void>;
161
162
  readonly "Viewlet.openWidget": (widgetId: string) => Promise<string>;
162
163
  readonly "WebView.getWebViewInfo2": (id: string) => Promise<any>;
@@ -172,9 +173,18 @@ export interface SearchProcessApi {
172
173
  }
173
174
  declare const invoke$5: <T extends "TextSearch.search">(method: T, ...params: Parameters<SearchProcessApi[T]>) => ReturnType<SearchProcessApi[T]>, invokeAndTransfer$5: <T extends "TextSearch.search">(method: T, ...params: Parameters<SearchProcessApi[T]>) => ReturnType<SearchProcessApi[T]>, set$6: (rpc: import("@lvce-editor/rpc").Rpc) => void;
174
175
  export interface FileProcessApi {
176
+ readonly "FileSystem.copy": (oldUri: string, newUri: string) => Promise<void>;
177
+ readonly "FileSystem.getPathSeparator": () => Promise<string>;
178
+ readonly "FileSystem.getRealPath": (uri: string) => Promise<string>;
179
+ readonly "FileSystem.mkdir": (uri: string) => Promise<void>;
180
+ readonly "FileSystem.readDirWithFileTypes": (uri: string) => Promise<readonly any[]>;
175
181
  readonly "FileSystem.readFile": (uri: string) => Promise<string>;
182
+ readonly "FileSystem.remove": (uri: string) => Promise<void>;
183
+ readonly "FileSystem.rename": (oldUri: string, newUri: string) => Promise<void>;
184
+ readonly "FileSystem.stat": (uri: string) => Promise<any>;
185
+ readonly "FileSystem.writeFile": (uri: string, content: string) => Promise<void>;
176
186
  }
177
- declare const invoke$6: <T extends "FileSystem.readFile">(method: T, ...params: Parameters<FileProcessApi[T]>) => ReturnType<FileProcessApi[T]>, invokeAndTransfer$6: <T extends "FileSystem.readFile">(method: T, ...params: Parameters<FileProcessApi[T]>) => ReturnType<FileProcessApi[T]>, set$7: (rpc: import("@lvce-editor/rpc").Rpc) => void;
187
+ declare const invoke$6: <T extends keyof FileProcessApi>(method: T, ...params: Parameters<FileProcessApi[T]>) => ReturnType<FileProcessApi[T]>, invokeAndTransfer$6: <T extends keyof FileProcessApi>(method: T, ...params: Parameters<FileProcessApi[T]>) => ReturnType<FileProcessApi[T]>, set$7: (rpc: import("@lvce-editor/rpc").Rpc) => void;
178
188
  export interface SharedProcessApi {
179
189
  readonly "ElectronWebContents.callFunction": (webContentsId: any, method: string, ...params: readonly any[]) => Promise<any>;
180
190
  readonly "ElectronWebContents.dispose": (id: any) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/rpc-registry",
3
- "version": "2.15.0",
3
+ "version": "2.16.0",
4
4
  "description": "Rpc Registry",
5
5
  "license": "MIT",
6
6
  "author": "Lvce Editor",