@emeryld/rrroutes-client 2.6.12 → 2.6.13
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AnyLeafLowProfile, EventMap, SocketConnectionConfigOutput, SocketEvent } from '@emeryld/rrroutes-contract';
|
|
2
|
-
import type { BuiltInfinite, BuiltQuery, DataShape, InfiniteUseEndpointResultFor, QueryUseEndpointResultFor, UseEndpointArgs } from '../../routesV3.client.types';
|
|
2
|
+
import type { ArgsFor, BuiltInfinite, BuiltQuery, DataShape, InfiniteUseEndpointResultFor, QueryUseEndpointResultFor, UseEndpointArgs } from '../../routesV3.client.types';
|
|
3
3
|
import type { ClientCtx, ServerEnvelope, SocketClient } from '../socket.client.core';
|
|
4
4
|
import { type SocketedRouteDebugOptions } from './socket.client.helper.debug';
|
|
5
5
|
import { type ToRoomsMapper } from './socket.client.helper.rooms';
|
|
@@ -10,10 +10,10 @@ export type SocketedRouteResult<L extends AnyLeafLowProfile> = (L['cfg']['feed']
|
|
|
10
10
|
export type ApplySocket<L extends AnyLeafLowProfile, S extends SocketEvent> = (args: {
|
|
11
11
|
prev: DataShape<L> | undefined;
|
|
12
12
|
payload: S['__out'];
|
|
13
|
+
args: ArgsFor<L> | undefined;
|
|
13
14
|
meta: {
|
|
14
15
|
envelope?: ServerEnvelope<S['__out']>;
|
|
15
16
|
ctx?: ClientCtx;
|
|
16
|
-
args: UseEndpointArgs<L>;
|
|
17
17
|
};
|
|
18
18
|
}) => DataShape<L> | undefined | null;
|
|
19
19
|
export type SocketedRouteOptions<L extends AnyLeafLowProfile, Events extends EventMap, C extends SocketConnectionConfigOutput> = {
|