@delight-rpc/electron 5.0.1 → 5.0.2
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/README.md +4 -4
- package/lib/client.d.ts +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -219,24 +219,24 @@ function createClientInRenderer<IAPI extends object>(
|
|
|
219
219
|
|
|
220
220
|
### createBatchClientInMain
|
|
221
221
|
```ts
|
|
222
|
-
function createBatchClientInMain(
|
|
222
|
+
function createBatchClientInMain<DataType>(
|
|
223
223
|
port: Electron.MessagePortMain
|
|
224
224
|
, options?: {
|
|
225
225
|
expectedVersion?: string
|
|
226
226
|
channel?: string
|
|
227
227
|
}
|
|
228
|
-
): [client: DelightRPC.BatchClient
|
|
228
|
+
): [client: DelightRPC.BatchClient<DataType>, close: () => void]
|
|
229
229
|
```
|
|
230
230
|
|
|
231
231
|
### createBatchClientInRenderer
|
|
232
232
|
```ts
|
|
233
|
-
function createBatchClientInRenderer(
|
|
233
|
+
function createBatchClientInRenderer<DataType>(
|
|
234
234
|
port: MessagePort
|
|
235
235
|
, options?: {
|
|
236
236
|
expectedVersion?: string
|
|
237
237
|
channel?: string
|
|
238
238
|
}
|
|
239
|
-
): [client: DelightRPC.BatchClient
|
|
239
|
+
): [client: DelightRPC.BatchClient<DataType>, close: () => void]
|
|
240
240
|
```
|
|
241
241
|
|
|
242
242
|
### createServerInMain
|
package/lib/client.d.ts
CHANGED
|
@@ -11,13 +11,13 @@ export declare function createClientInRenderer<IAPI extends object>(port: Messag
|
|
|
11
11
|
expectedVersion?: string;
|
|
12
12
|
channel?: string;
|
|
13
13
|
}): [client: DelightRPC.ClientProxy<IAPI>, close: () => void];
|
|
14
|
-
export declare function createBatchClientInMain(port: Electron.MessagePortMain, { expectedVersion, channel }?: {
|
|
14
|
+
export declare function createBatchClientInMain<DataType>(port: Electron.MessagePortMain, { expectedVersion, channel }?: {
|
|
15
15
|
expectedVersion?: string;
|
|
16
16
|
channel?: string;
|
|
17
|
-
}): [client: DelightRPC.BatchClient
|
|
18
|
-
export declare function createBatchClientInRenderer(port: MessagePort, { expectedVersion, channel }?: {
|
|
17
|
+
}): [client: DelightRPC.BatchClient<DataType>, close: () => void];
|
|
18
|
+
export declare function createBatchClientInRenderer<DataType>(port: MessagePort, { expectedVersion, channel }?: {
|
|
19
19
|
expectedVersion?: string;
|
|
20
20
|
channel?: string;
|
|
21
|
-
}): [client: DelightRPC.BatchClient
|
|
21
|
+
}): [client: DelightRPC.BatchClient<DataType>, close: () => void];
|
|
22
22
|
export declare class ClientClosed extends CustomError {
|
|
23
23
|
}
|