@delight-rpc/child-process 0.5.1 → 0.5.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 CHANGED
@@ -77,13 +77,13 @@ function createClient<IAPI extends object>(
77
77
 
78
78
  ### createBatchClient
79
79
  ```ts
80
- function createBatchClient(
80
+ function createBatchClient<DataType>(
81
81
  process: ChildProcess | NodeJS.Process
82
82
  , options?: {
83
83
  expectedVersion?: string
84
84
  channel?: string
85
85
  }
86
- ): [client: DelightRPC.BatchClient, close: () => void]
86
+ ): [client: DelightRPC.BatchClient<DataType>, close: () => void]
87
87
  ```
88
88
 
89
89
  ### createServer
package/lib/client.d.ts CHANGED
@@ -8,9 +8,9 @@ export declare function createClient<IAPI extends object>(process: ChildProcess
8
8
  expectedVersion?: string;
9
9
  channel?: string;
10
10
  }): [client: DelightRPC.ClientProxy<IAPI>, close: () => void];
11
- export declare function createBatchClient(process: ChildProcess | NodeJS.Process, { expectedVersion, channel }?: {
11
+ export declare function createBatchClient<DataType>(process: ChildProcess | NodeJS.Process, { expectedVersion, channel }?: {
12
12
  expectedVersion?: string;
13
13
  channel?: string;
14
- }): [client: DelightRPC.BatchClient, close: () => void];
14
+ }): [client: DelightRPC.BatchClient<DataType>, close: () => void];
15
15
  export declare class ClientClosed extends CustomError {
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delight-rpc/child-process",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "files": [