@emeryld/rrroutes-client 2.7.4 → 2.7.5
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 +8 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/dist/routesV3.client.types.d.ts +3 -5
- package/package.json +3 -3
|
@@ -108,7 +108,7 @@ type UseEndpointResult<L extends AnyLeafLowProfile, Result> = Result & {
|
|
|
108
108
|
/** Variadic args consumed by the direct fetch helper: optional args + body. */
|
|
109
109
|
export type MutationFetchArgs<L extends AnyLeafLowProfile> = Prettify<[
|
|
110
110
|
...ArgsTuple<L>,
|
|
111
|
-
InferBodyInput<L
|
|
111
|
+
InferBodyInput<L>
|
|
112
112
|
]>;
|
|
113
113
|
/** Signature for the fetch helper returned by mutation builds. */
|
|
114
114
|
export type MutationFetcher<L extends AnyLeafLowProfile> = (...args: MutationFetchArgs<L>) => Promise<InferOutput<L>>;
|
|
@@ -290,10 +290,8 @@ export type BuiltLeafLike = {
|
|
|
290
290
|
};
|
|
291
291
|
export type BuiltLeafMap = Record<string, BuiltLeafLike>;
|
|
292
292
|
/** Per-leaf request shape sent to the batch endpoint. */
|
|
293
|
-
export type BranchFetchInputForLeaf<L extends AnyLeafLowProfile> = Prettify<(keyof ArgsFor<L> extends never ? {} : ArgsFor<L>) & (InferBodyInput<L> extends never ? {} :
|
|
294
|
-
body?: InferBodyInput<L
|
|
295
|
-
} : {
|
|
296
|
-
body: InferBodyInput<L, undefined>;
|
|
293
|
+
export type BranchFetchInputForLeaf<L extends AnyLeafLowProfile> = Prettify<(keyof ArgsFor<L> extends never ? {} : ArgsFor<L>) & (InferBodyInput<L> extends never ? {} : {
|
|
294
|
+
body?: InferBodyInput<L>;
|
|
297
295
|
})>;
|
|
298
296
|
/** Input payload keyed by alias for branch.fetch/useEndpoint calls. */
|
|
299
297
|
export type BranchFetchInput<T extends BuiltLeafMap> = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emeryld/rrroutes-client",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@emeryld/rrroutes-contract": "^2.6.
|
|
22
|
+
"@emeryld/rrroutes-contract": "^2.6.3",
|
|
23
23
|
"zod": "^4.3.6"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"socket.io-client": "^4.8.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@jest/globals": "^30.
|
|
32
|
+
"@jest/globals": "^30.3.0",
|
|
33
33
|
"@types/react": "^18.3.28",
|
|
34
34
|
"@types/react-native": "^0.73.0"
|
|
35
35
|
},
|