wenay-common2 1.0.30 → 1.0.32
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.
|
@@ -12,7 +12,7 @@ export declare function createRpcClientHub<T extends Record<string, RpcDescripto
|
|
|
12
12
|
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]; }>;
|
|
13
13
|
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]; };
|
|
14
14
|
setToken: (token: string | null) => 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
|
-
socket: null;
|
|
15
|
+
readonly socket: RpcHubSocket | null;
|
|
16
16
|
onConnect: (func?: ((count: number) => void) | null) => void;
|
|
17
17
|
connectCount: () => number;
|
|
18
18
|
};
|
|
@@ -42,7 +42,7 @@ function createRpcClientHub(createSocket, schemaBuilder) {
|
|
|
42
42
|
get promise() { return promise; },
|
|
43
43
|
facade,
|
|
44
44
|
setToken,
|
|
45
|
-
socket,
|
|
45
|
+
get socket() { return socket; },
|
|
46
46
|
onConnect: (func) => { onConnectCb = func ?? null; },
|
|
47
47
|
connectCount: () => connectCount,
|
|
48
48
|
};
|
|
@@ -218,5 +218,5 @@ export type SimpleParamsMutable<T> = T extends const_Date ? const_Date : Mutable
|
|
|
218
218
|
};
|
|
219
219
|
export type SimpleParams<T = IParams> = ReadonlyFull<SimpleParamsMutable<T>>;
|
|
220
220
|
export declare function GetSimpleParams<T extends ReadonlyFull<IParams>>(params: T): SimpleParamsMutable<T>;
|
|
221
|
-
export declare function mergeParamValuesToInfos<TParams extends IParamsReadonly, TParams2 extends IParamsReadonly>(srcObj: TParams, valuesObj: SimpleParams<TParams2> | TParams2): TParams;
|
|
221
|
+
export declare function mergeParamValuesToInfos<TParams extends IParamsReadonly | IParams, TParams2 extends IParamsReadonly | IParams>(srcObj: TParams, valuesObj: SimpleParams<TParams2> | TParams2): TParams;
|
|
222
222
|
export {};
|