wenay-common2 1.0.26 → 1.0.27

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.
@@ -13,7 +13,7 @@ export declare function createRpcClientHub<T extends Record<string, RpcDescripto
13
13
  }): {
14
14
  readonly promise: Promise<{ [K_1 in keyof { [K in keyof T]: T[K] extends RpcDescriptor<infer U extends object> ? import("./rpc-client").RpcClientReturn<DeepSocketListenSmart<U>> : never; }]: { [K in keyof T]: T[K] extends RpcDescriptor<infer U extends object> ? import("./rpc-client").RpcClientReturn<DeepSocketListenSmart<U>> : never; }[K_1]; }>;
15
15
  facade: { [K_1 in keyof { [K in keyof T]: T[K] extends RpcDescriptor<infer U extends object> ? import("./rpc-client").RpcClientReturn<DeepSocketListenSmart<U>> : never; }]: { [K in keyof T]: T[K] extends RpcDescriptor<infer U extends object> ? import("./rpc-client").RpcClientReturn<DeepSocketListenSmart<U>> : never; }[K_1]; };
16
- setToken: (token: string | null) => void;
16
+ setToken: (token: string | null) => any;
17
17
  onConnect: (func?: ((count: number) => void) | null) => void;
18
18
  connectCount: () => number;
19
19
  };
@@ -36,6 +36,7 @@ function createRpcClientHub(createSocket, schemaBuilder, options) {
36
36
  a(facade);
37
37
  }
38
38
  });
39
+ return result;
39
40
  }
40
41
  const result = {
41
42
  get promise() { return promise; },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenay-common2",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Common library",
5
5
  "strict": true,
6
6
  "main": "lib/index.js",