@emeryld/rrroutes-client 2.6.7 → 2.6.9
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/dist/index.cjs +179 -176
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +183 -177
- package/dist/index.mjs.map +1 -1
- package/dist/routesV3.client.types.d.ts +1 -3
- package/dist/sockets/socket.client.index.d.ts +2 -1
- package/dist/sockets/socketedRoute/socket.client.helper.route.d.ts +2 -3
- package/package.json +1 -1
|
@@ -276,9 +276,7 @@ export type BuiltLeafLike = {
|
|
|
276
276
|
};
|
|
277
277
|
export type BuiltLeafMap = Record<string, BuiltLeafLike>;
|
|
278
278
|
/** Per-leaf request shape sent to the batch endpoint. */
|
|
279
|
-
export type BranchFetchInputForLeaf<L extends AnyLeafLowProfile> = Prettify<(keyof ArgsFor<L> extends never ? {} : {
|
|
280
|
-
args: ArgsFor<L>;
|
|
281
|
-
}) & (InferBodyInput<L> extends never ? {} : L['method'] extends 'get' ? {
|
|
279
|
+
export type BranchFetchInputForLeaf<L extends AnyLeafLowProfile> = Prettify<(keyof ArgsFor<L> extends never ? {} : ArgsFor<L>) & (InferBodyInput<L> extends never ? {} : L['method'] extends 'get' ? {
|
|
282
280
|
body?: InferBodyInput<L, undefined>;
|
|
283
281
|
} : {
|
|
284
282
|
body: InferBodyInput<L, undefined>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * from './socket.client.core';
|
|
2
1
|
export * from './socket.client.context';
|
|
2
|
+
export * from './socket.client.core';
|
|
3
3
|
export * from './socket.client.sys';
|
|
4
4
|
export * from './socketedRoute/socket.client.helper';
|
|
5
|
+
export * from './socketedRoute/socket.client.helper.route';
|
|
@@ -3,8 +3,8 @@ import type { BuiltInfinite, BuiltQuery, DataShape, InfiniteUseEndpointResultFor
|
|
|
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';
|
|
6
|
-
type SocketedBuilt<L extends AnyLeafLowProfile> = L['cfg']['feed'] extends true ? BuiltInfinite<L> : BuiltQuery<L>;
|
|
7
|
-
type SocketedRouteResult<L extends AnyLeafLowProfile> = (L['cfg']['feed'] extends true ? InfiniteUseEndpointResultFor<L> : QueryUseEndpointResultFor<L>) & {
|
|
6
|
+
export type SocketedBuilt<L extends AnyLeafLowProfile> = L['cfg']['feed'] extends true ? BuiltInfinite<L> : BuiltQuery<L>;
|
|
7
|
+
export type SocketedRouteResult<L extends AnyLeafLowProfile> = (L['cfg']['feed'] extends true ? InfiniteUseEndpointResultFor<L> : QueryUseEndpointResultFor<L>) & {
|
|
8
8
|
rooms: string[];
|
|
9
9
|
};
|
|
10
10
|
export type SocketedRouteOptions<L extends AnyLeafLowProfile, Events extends EventMap, C extends SocketConnectionConfigOutput> = {
|
|
@@ -38,4 +38,3 @@ export type SocketedRouteOptions<L extends AnyLeafLowProfile, Events extends Eve
|
|
|
38
38
|
export declare function buildSocketedRoute<L extends AnyLeafLowProfile, Events extends EventMap, C extends SocketConnectionConfigOutput>(options: SocketedRouteOptions<L, Events, C>): Omit<SocketedBuilt<L>, "useEndpoint"> & {
|
|
39
39
|
useEndpoint: (...useArgs: UseEndpointArgs<L>) => SocketedRouteResult<L>;
|
|
40
40
|
};
|
|
41
|
-
export {};
|