@delight-rpc/piscina 0.5.5 → 0.5.6

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/lib/client.d.ts CHANGED
@@ -8,4 +8,4 @@ export declare function createClient<IAPI extends object>(piscina: Piscina, { pa
8
8
  export declare function createBatchClient<DataType>(piscina: Piscina, { expectedVersion, channel }?: {
9
9
  expectedVersion?: string;
10
10
  channel?: string;
11
- }): DelightRPC.BatchClient;
11
+ }): DelightRPC.BatchClient<DataType>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delight-rpc/piscina",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "files": [
package/src/client.ts CHANGED
@@ -28,7 +28,7 @@ export function createBatchClient<DataType>(
28
28
  expectedVersion?: string
29
29
  channel?: string
30
30
  } = {}
31
- ): DelightRPC.BatchClient {
31
+ ): DelightRPC.BatchClient<DataType> {
32
32
  const client = new DelightRPC.BatchClient<DataType>(
33
33
  createSend(piscina)
34
34
  , {