@trpc/react-query 11.0.0-next-beta.237 → 11.0.0-next-beta.240
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/bundle-analysis.json +24 -24
- package/dist/createTRPCReact.d.ts +19 -19
- package/dist/createTRPCReact.d.ts.map +1 -1
- package/dist/internals/getQueryKey.d.ts +7 -7
- package/dist/internals/getQueryKey.d.ts.map +1 -1
- package/dist/server/ssgProxy.d.ts +7 -7
- package/dist/server/ssgProxy.d.ts.map +1 -1
- package/dist/shared/polymorphism/mutationLike.d.ts +4 -4
- package/dist/shared/polymorphism/mutationLike.d.ts.map +1 -1
- package/dist/shared/polymorphism/queryLike.d.ts +5 -5
- package/dist/shared/polymorphism/queryLike.d.ts.map +1 -1
- package/dist/shared/polymorphism/routerLike.d.ts +4 -4
- package/dist/shared/polymorphism/routerLike.d.ts.map +1 -1
- package/dist/shared/proxy/useQueriesProxy.d.ts +5 -5
- package/dist/shared/proxy/useQueriesProxy.d.ts.map +1 -1
- package/dist/shared/proxy/utilsProxy.d.ts +13 -13
- package/dist/shared/proxy/utilsProxy.d.ts.map +1 -1
- package/dist/utils/inferReactQueryProcedure.d.ts +6 -6
- package/dist/utils/inferReactQueryProcedure.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/createTRPCReact.tsx +44 -44
- package/src/internals/getQueryKey.ts +9 -9
- package/src/server/ssgProxy.ts +13 -13
- package/src/shared/polymorphism/mutationLike.ts +6 -6
- package/src/shared/polymorphism/queryLike.ts +8 -8
- package/src/shared/polymorphism/routerLike.ts +6 -6
- package/src/shared/proxy/useQueriesProxy.ts +15 -15
- package/src/shared/proxy/utilsProxy.ts +23 -23
- package/src/utils/inferReactQueryProcedure.ts +23 -17
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bundleSize": 27639,
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 56.
|
|
3
|
+
"bundleOrigSize": 62828,
|
|
4
|
+
"bundleReduction": 56.01,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/shared/hooks/createHooksInternal.tsx",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
{
|
|
21
21
|
"id": "/src/server/ssgProxy.ts",
|
|
22
22
|
"size": 3693,
|
|
23
|
-
"origSize":
|
|
23
|
+
"origSize": 7199,
|
|
24
24
|
"renderedExports": [
|
|
25
25
|
"createServerSideHelpers"
|
|
26
26
|
],
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"/src/server/index.ts"
|
|
30
30
|
],
|
|
31
31
|
"percent": 13.36,
|
|
32
|
-
"reduction": 48.
|
|
32
|
+
"reduction": 48.7
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"id": "/src/utils/createUtilityFunctions.ts",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
{
|
|
50
50
|
"id": "/src/shared/proxy/utilsProxy.ts",
|
|
51
51
|
"size": 2745,
|
|
52
|
-
"origSize":
|
|
52
|
+
"origSize": 10465,
|
|
53
53
|
"renderedExports": [
|
|
54
54
|
"getQueryType",
|
|
55
55
|
"createReactQueryUtils",
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
"/src/shared/index.ts"
|
|
61
61
|
],
|
|
62
62
|
"percent": 9.93,
|
|
63
|
-
"reduction": 73.
|
|
63
|
+
"reduction": 73.77
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"id": "/src/internals/getQueryKey.ts",
|
|
67
67
|
"size": 1894,
|
|
68
|
-
"origSize":
|
|
68
|
+
"origSize": 4214,
|
|
69
69
|
"renderedExports": [
|
|
70
70
|
"getQueryKeyInternal",
|
|
71
71
|
"getQueryKey"
|
|
@@ -73,18 +73,18 @@
|
|
|
73
73
|
"removedExports": [],
|
|
74
74
|
"dependents": [
|
|
75
75
|
"/src/index.ts",
|
|
76
|
-
"/src/server/ssgProxy.ts",
|
|
77
76
|
"/src/shared/proxy/utilsProxy.ts",
|
|
78
77
|
"/src/shared/proxy/useQueriesProxy.ts",
|
|
79
|
-
"/src/shared/hooks/createHooksInternal.tsx"
|
|
78
|
+
"/src/shared/hooks/createHooksInternal.tsx",
|
|
79
|
+
"/src/server/ssgProxy.ts"
|
|
80
80
|
],
|
|
81
81
|
"percent": 6.85,
|
|
82
|
-
"reduction": 55.
|
|
82
|
+
"reduction": 55.05
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"id": "/src/createTRPCReact.tsx",
|
|
86
86
|
"size": 850,
|
|
87
|
-
"origSize":
|
|
87
|
+
"origSize": 8715,
|
|
88
88
|
"renderedExports": [
|
|
89
89
|
"createHooksInternal",
|
|
90
90
|
"createTRPCReact"
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"/src/index.ts"
|
|
95
95
|
],
|
|
96
96
|
"percent": 3.08,
|
|
97
|
-
"reduction": 90.
|
|
97
|
+
"reduction": 90.25
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"id": "/src/shared/proxy/decorationProxy.ts",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
{
|
|
114
114
|
"id": "/src/shared/proxy/useQueriesProxy.ts",
|
|
115
115
|
"size": 569,
|
|
116
|
-
"origSize":
|
|
116
|
+
"origSize": 3166,
|
|
117
117
|
"renderedExports": [
|
|
118
118
|
"createUseQueries"
|
|
119
119
|
],
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"/src/shared/hooks/createHooksInternal.tsx"
|
|
124
124
|
],
|
|
125
125
|
"percent": 2.06,
|
|
126
|
-
"reduction": 82.
|
|
126
|
+
"reduction": 82.03
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
"id": "/src/internals/getClientArgs.ts",
|
|
@@ -211,16 +211,6 @@
|
|
|
211
211
|
"percent": 0,
|
|
212
212
|
"reduction": 100
|
|
213
213
|
},
|
|
214
|
-
{
|
|
215
|
-
"id": "/src/server/index.ts",
|
|
216
|
-
"size": 0,
|
|
217
|
-
"origSize": 54,
|
|
218
|
-
"renderedExports": [],
|
|
219
|
-
"removedExports": [],
|
|
220
|
-
"dependents": [],
|
|
221
|
-
"percent": 0,
|
|
222
|
-
"reduction": 100
|
|
223
|
-
},
|
|
224
214
|
{
|
|
225
215
|
"id": "/src/shared/index.ts",
|
|
226
216
|
"size": 0,
|
|
@@ -234,6 +224,16 @@
|
|
|
234
224
|
],
|
|
235
225
|
"percent": 0,
|
|
236
226
|
"reduction": 100
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"id": "/src/server/index.ts",
|
|
230
|
+
"size": 0,
|
|
231
|
+
"origSize": 54,
|
|
232
|
+
"renderedExports": [],
|
|
233
|
+
"removedExports": [],
|
|
234
|
+
"dependents": [],
|
|
235
|
+
"percent": 0,
|
|
236
|
+
"reduction": 100
|
|
237
237
|
}
|
|
238
238
|
],
|
|
239
239
|
"moduleCount": 16
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TRPCClientErrorLike } from '@trpc/client';
|
|
2
|
-
import type { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure,
|
|
2
|
+
import type { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure, AnyRootTypes, AnyRouter, AnySubscriptionProcedure, inferProcedureInput, inferTransformedProcedureOutput, inferTransformedSubscriptionOutput, ProcedureRouterRecord, ProtectedIntersection } from '@trpc/server/unstable-core-do-not-import';
|
|
3
3
|
import type { TRPCUseQueries, TRPCUseSuspenseQueries } from './internals/useQueries';
|
|
4
4
|
import type { CreateReactUtils } from './shared';
|
|
5
5
|
import type { CreateReactQueryHooks } from './shared/hooks/createHooksInternal';
|
|
@@ -8,9 +8,9 @@ import type { CreateTRPCReactOptions } from './shared/types';
|
|
|
8
8
|
/**
|
|
9
9
|
* @internal
|
|
10
10
|
*/
|
|
11
|
-
export interface ProcedureUseQuery<
|
|
12
|
-
<TQueryFnData extends inferTransformedProcedureOutput<
|
|
13
|
-
<TQueryFnData extends inferTransformedProcedureOutput<
|
|
11
|
+
export interface ProcedureUseQuery<TRoot extends AnyRootTypes, TProcedure extends AnyProcedure> {
|
|
12
|
+
<TQueryFnData extends inferTransformedProcedureOutput<TRoot, TProcedure> = inferTransformedProcedureOutput<TRoot, TProcedure>, TData = TQueryFnData>(input: inferProcedureInput<TProcedure>, opts: DefinedUseTRPCQueryOptions<TQueryFnData, TData, TRPCClientErrorLike<TRoot>, inferTransformedProcedureOutput<TRoot, TProcedure>>): DefinedUseTRPCQueryResult<TData, TRPCClientErrorLike<TRoot>>;
|
|
13
|
+
<TQueryFnData extends inferTransformedProcedureOutput<TRoot, TProcedure> = inferTransformedProcedureOutput<TRoot, TProcedure>, TData = TQueryFnData>(input: inferProcedureInput<TProcedure>, opts?: UseTRPCQueryOptions<TQueryFnData, TData, TRPCClientErrorLike<TRoot>, inferTransformedProcedureOutput<TRoot, TProcedure>>): UseTRPCQueryResult<TData, TRPCClientErrorLike<TRoot>>;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* @remark `void` is here due to https://github.com/trpc/trpc/pull/4374
|
|
@@ -21,56 +21,56 @@ type CursorInput = {
|
|
|
21
21
|
/**
|
|
22
22
|
* @internal
|
|
23
23
|
*/
|
|
24
|
-
export type MaybeDecoratedInfiniteQuery<TProcedure extends AnyProcedure,
|
|
24
|
+
export type MaybeDecoratedInfiniteQuery<TProcedure extends AnyProcedure, TRoot extends AnyRootTypes> = inferProcedureInput<TProcedure> extends CursorInput ? {
|
|
25
25
|
/**
|
|
26
26
|
* @link https://trpc.io/docs/v11/client/react/suspense#useinfinitesuspensequery
|
|
27
27
|
*/
|
|
28
|
-
useInfiniteQuery: (input: Omit<inferProcedureInput<TProcedure>, 'cursor'>, opts: UseTRPCInfiniteQueryOptions<inferProcedureInput<TProcedure>, inferTransformedProcedureOutput<
|
|
28
|
+
useInfiniteQuery: (input: Omit<inferProcedureInput<TProcedure>, 'cursor'>, opts: UseTRPCInfiniteQueryOptions<inferProcedureInput<TProcedure>, inferTransformedProcedureOutput<TRoot, TProcedure>, TRPCClientErrorLike<TRoot>>) => UseTRPCInfiniteQueryResult<inferTransformedProcedureOutput<TRoot, TProcedure>, TRPCClientErrorLike<TRoot>, inferProcedureInput<TProcedure>>;
|
|
29
29
|
/**
|
|
30
30
|
* @link https://trpc.io/docs/v11/client/react/suspense
|
|
31
31
|
*/
|
|
32
|
-
useSuspenseInfiniteQuery: (input: Omit<inferProcedureInput<TProcedure>, 'cursor'>, opts: UseTRPCSuspenseInfiniteQueryOptions<inferProcedureInput<TProcedure>, inferTransformedProcedureOutput<
|
|
32
|
+
useSuspenseInfiniteQuery: (input: Omit<inferProcedureInput<TProcedure>, 'cursor'>, opts: UseTRPCSuspenseInfiniteQueryOptions<inferProcedureInput<TProcedure>, inferTransformedProcedureOutput<TRoot, TProcedure>, TRPCClientErrorLike<TRoot>>) => UseTRPCSuspenseInfiniteQueryResult<inferTransformedProcedureOutput<TRoot, TProcedure>, TRPCClientErrorLike<TRoot>, inferProcedureInput<TProcedure>>;
|
|
33
33
|
} : object;
|
|
34
34
|
/**
|
|
35
35
|
* @internal
|
|
36
36
|
*/
|
|
37
|
-
export type DecoratedQueryMethods<
|
|
37
|
+
export type DecoratedQueryMethods<TRoot extends AnyRootTypes, TProcedure extends AnyProcedure> = {
|
|
38
38
|
/**
|
|
39
39
|
* @link https://trpc.io/docs/v11/client/react/useQuery
|
|
40
40
|
*/
|
|
41
|
-
useQuery: ProcedureUseQuery<
|
|
41
|
+
useQuery: ProcedureUseQuery<TRoot, TProcedure>;
|
|
42
42
|
/**
|
|
43
43
|
* @link https://trpc.io/docs/v11/client/react/suspense#usesuspensequery
|
|
44
44
|
*/
|
|
45
|
-
useSuspenseQuery: <TQueryFnData extends inferTransformedProcedureOutput<
|
|
45
|
+
useSuspenseQuery: <TQueryFnData extends inferTransformedProcedureOutput<TRoot, TProcedure> = inferTransformedProcedureOutput<TRoot, TProcedure>, TData = TQueryFnData>(input: inferProcedureInput<TProcedure>, opts?: UseTRPCSuspenseQueryOptions<TQueryFnData, TData, TRPCClientErrorLike<TRoot>>) => UseTRPCSuspenseQueryResult<TData, TRPCClientErrorLike<TRoot>>;
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
48
|
* @internal
|
|
49
49
|
*/
|
|
50
|
-
export type DecoratedQuery<
|
|
50
|
+
export type DecoratedQuery<TRoot extends AnyRootTypes, TProcedure extends AnyProcedure> = MaybeDecoratedInfiniteQuery<TProcedure, TRoot> & DecoratedQueryMethods<TRoot, TProcedure>;
|
|
51
51
|
/**
|
|
52
52
|
* @internal
|
|
53
53
|
*/
|
|
54
|
-
export interface DecoratedMutation<
|
|
54
|
+
export interface DecoratedMutation<TRoot extends AnyRootTypes, TProcedure extends AnyProcedure> {
|
|
55
55
|
/**
|
|
56
56
|
* @link https://trpc.io/docs/v11/client/react/useMutation
|
|
57
57
|
*/
|
|
58
|
-
useMutation: <TContext = unknown>(opts?: UseTRPCMutationOptions<inferProcedureInput<TProcedure>, TRPCClientErrorLike<
|
|
58
|
+
useMutation: <TContext = unknown>(opts?: UseTRPCMutationOptions<inferProcedureInput<TProcedure>, TRPCClientErrorLike<TRoot>, inferTransformedProcedureOutput<TRoot, TProcedure>, TContext>) => UseTRPCMutationResult<inferTransformedProcedureOutput<TRoot, TProcedure>, TRPCClientErrorLike<TRoot>, inferProcedureInput<TProcedure>, TContext>;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* @internal
|
|
62
62
|
*/
|
|
63
|
-
export type DecorateProcedure<
|
|
63
|
+
export type DecorateProcedure<TRoot extends AnyRootTypes, TProcedure extends AnyProcedure, _TFlags> = TProcedure extends AnyQueryProcedure ? DecoratedQuery<TRoot, TProcedure> : TProcedure extends AnyMutationProcedure ? DecoratedMutation<TRoot, TProcedure> : TProcedure extends AnySubscriptionProcedure ? {
|
|
64
64
|
/**
|
|
65
65
|
* @link https://trpc.io/docs/v11/subscriptions
|
|
66
66
|
*/
|
|
67
|
-
useSubscription: (input: inferProcedureInput<TProcedure>, opts?: UseTRPCSubscriptionOptions<inferTransformedSubscriptionOutput<
|
|
67
|
+
useSubscription: (input: inferProcedureInput<TProcedure>, opts?: UseTRPCSubscriptionOptions<inferTransformedSubscriptionOutput<TRoot, TProcedure>, TRPCClientErrorLike<TRoot>>) => void;
|
|
68
68
|
} : never;
|
|
69
69
|
/**
|
|
70
70
|
* @internal
|
|
71
71
|
*/
|
|
72
|
-
export type DecoratedProcedureRecord<
|
|
73
|
-
[TKey in keyof TProcedures]: TProcedures[TKey] extends AnyRouter ? DecoratedProcedureRecord<
|
|
72
|
+
export type DecoratedProcedureRecord<TRoot extends AnyRootTypes, TProcedures extends ProcedureRouterRecord, TFlags> = {
|
|
73
|
+
[TKey in keyof TProcedures]: TProcedures[TKey] extends AnyRouter ? DecoratedProcedureRecord<TRoot, TProcedures[TKey]['_def']['record'], TFlags> : TProcedures[TKey] extends AnyProcedure ? DecorateProcedure<TRoot, TProcedures[TKey], TFlags> : never;
|
|
74
74
|
};
|
|
75
75
|
/**
|
|
76
76
|
* @internal
|
|
@@ -92,11 +92,11 @@ export type CreateTRPCReactBase<TRouter extends AnyRouter, TSSRContext> = {
|
|
|
92
92
|
useSuspenseQueries: TRPCUseSuspenseQueries<TRouter>;
|
|
93
93
|
useDehydratedState: UseDehydratedState<TRouter>;
|
|
94
94
|
};
|
|
95
|
-
export type CreateTRPCReact<TRouter extends AnyRouter, TSSRContext, TFlags> = ProtectedIntersection<CreateTRPCReactBase<TRouter, TSSRContext>, DecoratedProcedureRecord<TRouter['_def']['_config'], TRouter['_def']['record'], TFlags>>;
|
|
95
|
+
export type CreateTRPCReact<TRouter extends AnyRouter, TSSRContext, TFlags> = ProtectedIntersection<CreateTRPCReactBase<TRouter, TSSRContext>, DecoratedProcedureRecord<TRouter['_def']['_config']['$types'], TRouter['_def']['record'], TFlags>>;
|
|
96
96
|
/**
|
|
97
97
|
* @internal
|
|
98
98
|
*/
|
|
99
|
-
export declare function createHooksInternal<TRouter extends AnyRouter, TSSRContext = unknown, TFlags = null>(trpc: CreateReactQueryHooks<TRouter, TSSRContext>): ProtectedIntersection<CreateTRPCReactBase<TRouter, TSSRContext>, DecoratedProcedureRecord<TRouter["_def"]["_config"], TRouter["_def"]["record"], TFlags>>;
|
|
99
|
+
export declare function createHooksInternal<TRouter extends AnyRouter, TSSRContext = unknown, TFlags = null>(trpc: CreateReactQueryHooks<TRouter, TSSRContext>): ProtectedIntersection<CreateTRPCReactBase<TRouter, TSSRContext>, DecoratedProcedureRecord<TRouter["_def"]["_config"]["$types"], TRouter["_def"]["record"], TFlags>>;
|
|
100
100
|
export declare function createTRPCReact<TRouter extends AnyRouter, TSSRContext = unknown, TFlags = null>(opts?: CreateTRPCReactOptions<TRouter>): CreateTRPCReact<TRouter, TSSRContext, TFlags>;
|
|
101
101
|
export {};
|
|
102
102
|
//# sourceMappingURL=createTRPCReact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTRPCReact.d.ts","sourceRoot":"","sources":["../src/createTRPCReact.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"createTRPCReact.d.ts","sourceRoot":"","sources":["../src/createTRPCReact.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,wBAAwB,EACxB,mBAAmB,EACnB,+BAA+B,EAC/B,kCAAkC,EAClC,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAGlD,OAAO,KAAK,EACV,cAAc,EACd,sBAAsB,EACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,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AC,OAAO,CAAC,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,eAAe,CACzB,OAAO,SAAS,SAAS,EACzB,WAAW,EACX,MAAM,IACJ,qBAAqB,CACvB,mBAAmB,CAAC,OAAO,EAAE,WAAW,CAAC,EACzC,wBAAwB,CACtB,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EACpC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,EACzB,MAAM,CACP,CACF,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,SAAS,SAAS,EACzB,WAAW,GAAG,OAAO,EACrB,MAAM,GAAG,IAAI,EACb,IAAI,EAAE,qBAAqB,CAAC,OAAO,EAAE,WAAW,CAAC,uKAoBlD;AAED,wBAAgB,eAAe,CAC7B,OAAO,SAAS,SAAS,EACzB,WAAW,GAAG,OAAO,EACrB,MAAM,GAAG,IAAI,EAEb,IAAI,CAAC,EAAE,sBAAsB,CAAC,OAAO,CAAC,GACrC,eAAe,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,CAAC,CAK/C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnyMutationProcedure, AnyQueryProcedure,
|
|
1
|
+
import type { AnyMutationProcedure, AnyQueryProcedure, AnyRootTypes, AnyRouter, DeepPartial, inferProcedureInput } from '@trpc/server/unstable-core-do-not-import';
|
|
2
2
|
import type { DecoratedProcedureRecord, DecorateProcedure } from '../shared';
|
|
3
3
|
export type QueryType = 'any' | 'infinite' | 'query';
|
|
4
4
|
export type TRPCQueryKey = [
|
|
@@ -20,13 +20,13 @@ export type GetQueryProcedureInput<TProcedureInput> = TProcedureInput extends {
|
|
|
20
20
|
cursor?: any;
|
|
21
21
|
} ? GetInfiniteQueryInput<TProcedureInput> : DeepPartial<TProcedureInput> | undefined;
|
|
22
22
|
type GetQueryParams<TProcedureOrRouter extends AnyQueryProcedure, TProcedureInput = inferProcedureInput<TProcedureOrRouter>> = TProcedureInput extends undefined ? [] : [input?: GetQueryProcedureInput<TProcedureInput>, type?: QueryType];
|
|
23
|
-
type GetParams<
|
|
24
|
-
procedureOrRouter: DecorateProcedure<
|
|
23
|
+
type GetParams<TRoot extends AnyRootTypes, TProcedureOrRouter extends AnyMutationProcedure | AnyQueryProcedure | AnyRouter, TFlags> = TProcedureOrRouter extends AnyQueryProcedure ? [
|
|
24
|
+
procedureOrRouter: DecorateProcedure<TRoot, TProcedureOrRouter, TFlags>,
|
|
25
25
|
..._params: GetQueryParams<TProcedureOrRouter>
|
|
26
|
-
] : TProcedureOrRouter extends AnyMutationProcedure ? [procedureOrRouter: DecorateProcedure<
|
|
27
|
-
procedureOrRouter: DecoratedProcedureRecord<
|
|
26
|
+
] : TProcedureOrRouter extends AnyMutationProcedure ? [procedureOrRouter: DecorateProcedure<TRoot, TProcedureOrRouter, TFlags>] : TProcedureOrRouter extends AnyRouter ? [
|
|
27
|
+
procedureOrRouter: DecoratedProcedureRecord<TRoot, TProcedureOrRouter['_def']['record'], TFlags>
|
|
28
28
|
] : never;
|
|
29
|
-
type GetQueryKeyParams<
|
|
29
|
+
type GetQueryKeyParams<TRoot extends AnyRootTypes, TProcedureOrRouter extends AnyMutationProcedure | AnyQueryProcedure | AnyRouter, TFlags> = GetParams<TRoot, TProcedureOrRouter, TFlags>;
|
|
30
30
|
/**
|
|
31
31
|
* Method to extract the query key for a procedure
|
|
32
32
|
* @param procedureOrRouter - procedure or AnyRouter
|
|
@@ -34,7 +34,7 @@ type GetQueryKeyParams<TConfig extends AnyRootConfig, TProcedureOrRouter extends
|
|
|
34
34
|
* @param type - defaults to `any`
|
|
35
35
|
* @link https://trpc.io/docs/v11/getQueryKey
|
|
36
36
|
*/
|
|
37
|
-
export declare function getQueryKey<
|
|
37
|
+
export declare function getQueryKey<TRoot extends AnyRootTypes, TProcedureOrRouter extends AnyMutationProcedure | AnyQueryProcedure | AnyRouter, TFlags>(..._params: GetQueryKeyParams<TRoot, TProcedureOrRouter, TFlags>): TRPCQueryKey;
|
|
38
38
|
export type QueryKeyKnown<TInput, TType extends Exclude<QueryType, 'any'>> = [
|
|
39
39
|
string[],
|
|
40
40
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getQueryKey.d.ts","sourceRoot":"","sources":["../../src/internals/getQueryKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"getQueryKey.d.ts","sourceRoot":"","sources":["../../src/internals/getQueryKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,WAAW,EACX,mBAAmB,EACpB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE7E,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,UAAU,GAAG,OAAO,CAAC;AAErD,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE;IACR;QAAE,KAAK,CAAC,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;KAAE,CAAC;CACvD,CAAC;AAEF;;;;IAII;AACJ,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EAAE,EACd,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,SAAS,GACd,YAAY,CAqCd;AAED,KAAK,qBAAqB,CACxB,eAAe,EACf,mBAAmB,GAAG,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC,IACnD,MAAM,mBAAmB,SAAS,KAAK,GACvC,SAAS,GACT,WAAW,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC;AAEjD,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,CAAC,eAAe,IAAI,eAAe,SAAS;IAC5E,MAAM,CAAC,EAAE,GAAG,CAA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MAAM,CAAC,gBAMjE;AAGD,MAAM,MAAM,aAAa,CAAC,MAAM,EAAE,KAAK,SAAS,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI;IAC3E,MAAM,EAAE;IACR;QAAE,KAAK,CAAC,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;QAAC,IAAI,EAAE,KAAK,CAAA;KAAE,CAAC;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DehydratedState, DehydrateOptions, InfiniteData, QueryClient } from '@tanstack/react-query';
|
|
2
2
|
import type { inferRouterClient, TRPCClientError } from '@trpc/client';
|
|
3
3
|
import { TRPCUntypedClient } from '@trpc/client';
|
|
4
|
-
import type { AnyProcedure, AnyQueryProcedure,
|
|
4
|
+
import type { AnyProcedure, AnyQueryProcedure, AnyRootTypes, AnyRouter, DataTransformerOptions, Filter, inferProcedureInput, inferRouterContext, inferTransformedProcedureOutput, ProtectedIntersection } from '@trpc/server/unstable-core-do-not-import';
|
|
5
5
|
import type { CreateTRPCReactQueryClientConfig, ExtractCursorType, TRPCFetchInfiniteQueryOptions, TRPCFetchQueryOptions } from '../shared';
|
|
6
6
|
interface CreateSSGHelpersInternal<TRouter extends AnyRouter> {
|
|
7
7
|
router: TRouter;
|
|
@@ -12,29 +12,29 @@ interface CreateSSGHelpersExternal<TRouter extends AnyRouter> {
|
|
|
12
12
|
client: inferRouterClient<TRouter> | TRPCUntypedClient<TRouter>;
|
|
13
13
|
}
|
|
14
14
|
type CreateServerSideHelpersOptions<TRouter extends AnyRouter> = CreateTRPCReactQueryClientConfig & (CreateSSGHelpersExternal<TRouter> | CreateSSGHelpersInternal<TRouter>);
|
|
15
|
-
type DecorateProcedure<
|
|
15
|
+
type DecorateProcedure<TRoot extends AnyRootTypes, TProcedure extends AnyProcedure> = {
|
|
16
16
|
/**
|
|
17
17
|
* @link https://tanstack.com/query/v5/docs/framework/react/guides/prefetching
|
|
18
18
|
*/
|
|
19
|
-
fetch(input: inferProcedureInput<TProcedure>, opts?: TRPCFetchQueryOptions<inferTransformedProcedureOutput<
|
|
19
|
+
fetch(input: inferProcedureInput<TProcedure>, opts?: TRPCFetchQueryOptions<inferTransformedProcedureOutput<TRoot, TProcedure>, TRPCClientError<TRoot>>): Promise<inferTransformedProcedureOutput<TRoot, TProcedure>>;
|
|
20
20
|
/**
|
|
21
21
|
* @link https://tanstack.com/query/v5/docs/framework/react/guides/prefetching
|
|
22
22
|
*/
|
|
23
|
-
fetchInfinite(input: inferProcedureInput<TProcedure>, opts?: TRPCFetchInfiniteQueryOptions<inferProcedureInput<TProcedure>, inferTransformedProcedureOutput<
|
|
23
|
+
fetchInfinite(input: inferProcedureInput<TProcedure>, opts?: TRPCFetchInfiniteQueryOptions<inferProcedureInput<TProcedure>, inferTransformedProcedureOutput<TRoot, TProcedure>, TRPCClientError<TRoot>>): Promise<InfiniteData<inferTransformedProcedureOutput<TRoot, TProcedure>, NonNullable<ExtractCursorType<inferProcedureInput<TProcedure>>> | null>>;
|
|
24
24
|
/**
|
|
25
25
|
* @link https://tanstack.com/query/v5/docs/framework/react/guides/prefetching
|
|
26
26
|
*/
|
|
27
|
-
prefetch(input: inferProcedureInput<TProcedure>, opts?: TRPCFetchQueryOptions<inferTransformedProcedureOutput<
|
|
27
|
+
prefetch(input: inferProcedureInput<TProcedure>, opts?: TRPCFetchQueryOptions<inferTransformedProcedureOutput<TRoot, TProcedure>, TRPCClientError<TRoot>>): Promise<void>;
|
|
28
28
|
/**
|
|
29
29
|
* @link https://tanstack.com/query/v5/docs/framework/react/guides/prefetching
|
|
30
30
|
*/
|
|
31
|
-
prefetchInfinite(input: inferProcedureInput<TProcedure>, opts?: TRPCFetchInfiniteQueryOptions<inferProcedureInput<TProcedure>, inferTransformedProcedureOutput<
|
|
31
|
+
prefetchInfinite(input: inferProcedureInput<TProcedure>, opts?: TRPCFetchInfiniteQueryOptions<inferProcedureInput<TProcedure>, inferTransformedProcedureOutput<TRoot, TProcedure>, TRPCClientError<TRoot>>): Promise<void>;
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
34
|
* @internal
|
|
35
35
|
*/
|
|
36
36
|
type DecoratedProcedureSSGRecord<TRouter extends AnyRouter> = {
|
|
37
|
-
[TKey in keyof Filter<TRouter['_def']['record'], AnyQueryProcedure | AnyRouter>]: TRouter['_def']['record'][TKey] extends AnyRouter ? DecoratedProcedureSSGRecord<TRouter['_def']['record'][TKey]> : DecorateProcedure<TRouter['_def']['_config'], TRouter['_def']['record'][TKey]>;
|
|
37
|
+
[TKey in keyof Filter<TRouter['_def']['record'], AnyQueryProcedure | AnyRouter>]: TRouter['_def']['record'][TKey] extends AnyRouter ? DecoratedProcedureSSGRecord<TRouter['_def']['record'][TKey]> : DecorateProcedure<TRouter['_def']['_config']['$types'], TRouter['_def']['record'][TKey]>;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
40
|
* Create functions you can use for server-side rendering / static generation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssgProxy.d.ts","sourceRoot":"","sources":["../../src/server/ssgProxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAoB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"ssgProxy.d.ts","sourceRoot":"","sources":["../../src/server/ssgProxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAoB,iBAAi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G;AACH,wBAAgB,uBAAuB,CAAC,OAAO,SAAS,SAAS,EAC/D,IAAI,EAAE,8BAA8B,CAAC,OAAO,CAAC;iBAoD5B,WAAW;uBACL,gBAAgB,KAAK,eAAe;yCA4D5D"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { AnyProcedure,
|
|
1
|
+
import type { AnyProcedure, AnyRootTypes, inferProcedureInput, inferTransformedProcedureOutput } from '@trpc/server/unstable-core-do-not-import';
|
|
2
2
|
import type { InferMutationOptions, InferMutationResult } from '../../utils/inferReactQueryProcedure';
|
|
3
3
|
/**
|
|
4
4
|
* Use to describe a mutation route which matches a given mutation procedure's interface
|
|
5
5
|
*/
|
|
6
|
-
export type MutationLike<
|
|
7
|
-
useMutation: (opts?: InferMutationOptions<
|
|
6
|
+
export type MutationLike<TRoot extends AnyRootTypes, TProcedure extends AnyProcedure> = {
|
|
7
|
+
useMutation: (opts?: InferMutationOptions<TRoot, TProcedure>) => InferMutationResult<TRoot, TProcedure>;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* Use to unwrap a MutationLike's input
|
|
@@ -13,5 +13,5 @@ export type InferMutationLikeInput<TMutationLike extends MutationLike<any, any>>
|
|
|
13
13
|
/**
|
|
14
14
|
* Use to unwrap a MutationLike's data output
|
|
15
15
|
*/
|
|
16
|
-
export type InferMutationLikeData<TMutationLike extends MutationLike<any, any>> = TMutationLike extends MutationLike<infer
|
|
16
|
+
export type InferMutationLikeData<TMutationLike extends MutationLike<any, any>> = TMutationLike extends MutationLike<infer TRoot, infer TProcedure> ? inferTransformedProcedureOutput<TRoot, TProcedure> : never;
|
|
17
17
|
//# sourceMappingURL=mutationLike.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutationLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/mutationLike.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"mutationLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/mutationLike.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,+BAA+B,EAChC,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,sCAAsC,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,YAAY,CACtB,KAAK,SAAS,YAAY,EAC1B,UAAU,SAAS,YAAY,IAC7B;IACF,WAAW,EAAE,CACX,IAAI,CAAC,EAAE,oBAAoB,CAAC,KAAK,EAAE,UAAU,CAAC,KAC3C,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;CAC7C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,CAChC,aAAa,SAAS,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,IAC1C,aAAa,SAAS,YAAY,CAAC,GAAG,EAAE,MAAM,UAAU,CAAC,GACzD,mBAAmB,CAAC,UAAU,CAAC,GAC/B,KAAK,CAAC;AAEV;;GAEG;AACH,MAAM,MAAM,qBAAqB,CAC/B,aAAa,SAAS,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,IAC1C,aAAa,SAAS,YAAY,CAAC,MAAM,KAAK,EAAE,MAAM,UAAU,CAAC,GACjE,+BAA+B,CAAC,KAAK,EAAE,UAAU,CAAC,GAClD,KAAK,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { TRPCClientErrorLike } from '@trpc/client';
|
|
2
|
-
import type { AnyProcedure,
|
|
2
|
+
import type { AnyProcedure, AnyRootTypes, inferProcedureInput, inferProcedureOutput, inferTransformedProcedureOutput } from '@trpc/server/unstable-core-do-not-import';
|
|
3
3
|
import type { InferQueryOptions, InferQueryResult } from '../../utils/inferReactQueryProcedure';
|
|
4
4
|
import type { UseTRPCSuspenseQueryResult } from '../hooks/types';
|
|
5
5
|
/**
|
|
6
6
|
* Use to request a query route which matches a given query procedure's interface
|
|
7
7
|
*/
|
|
8
|
-
export type QueryLike<
|
|
9
|
-
useQuery: (variables: inferProcedureInput<TProcedure>, opts?: InferQueryOptions<
|
|
10
|
-
useSuspenseQuery: (variables: inferProcedureInput<TProcedure>, opts?: InferQueryOptions<
|
|
8
|
+
export type QueryLike<TRoot extends AnyRootTypes, TProcedure extends AnyProcedure> = {
|
|
9
|
+
useQuery: (variables: inferProcedureInput<TProcedure>, opts?: InferQueryOptions<TRoot, TProcedure, any>) => InferQueryResult<TRoot, TProcedure>;
|
|
10
|
+
useSuspenseQuery: (variables: inferProcedureInput<TProcedure>, opts?: InferQueryOptions<TRoot, TProcedure, any>) => UseTRPCSuspenseQueryResult<inferProcedureOutput<TProcedure>, TRPCClientErrorLike<TRoot>>;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* Use to unwrap a QueryLike's input
|
|
@@ -16,5 +16,5 @@ export type InferQueryLikeInput<TQueryLike extends QueryLike<any, any>> = TQuery
|
|
|
16
16
|
/**
|
|
17
17
|
* Use to unwrap a QueryLike's data output
|
|
18
18
|
*/
|
|
19
|
-
export type InferQueryLikeData<TQueryLike extends QueryLike<any, any>> = TQueryLike extends QueryLike<infer
|
|
19
|
+
export type InferQueryLikeData<TQueryLike extends QueryLike<any, any>> = TQueryLike extends QueryLike<infer TRoot, infer TProcedure> ? inferTransformedProcedureOutput<TRoot, TProcedure> : never;
|
|
20
20
|
//# sourceMappingURL=queryLike.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/queryLike.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,KAAK,EACV,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"queryLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/queryLike.ts"],"names":[],"mappings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AAU,CAAC,GAClD,KAAK,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure,
|
|
1
|
+
import type { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure, AnyRootTypes, AnyRouter } from '@trpc/server/unstable-core-do-not-import';
|
|
2
2
|
import type { MutationLike } from './mutationLike';
|
|
3
3
|
import type { QueryLike } from './queryLike';
|
|
4
4
|
/**
|
|
5
5
|
* Use to describe a route path which matches a given route's interface
|
|
6
6
|
*/
|
|
7
|
-
export type RouterLike<TRouter extends AnyRouter> = RouterLikeInner<TRouter['_def']['_config'], TRouter['_def']['procedures']>;
|
|
8
|
-
export type RouterLikeInner<
|
|
9
|
-
[TKey in keyof TProcedures]: TProcedures[TKey] extends AnyRouter ? RouterLikeInner<
|
|
7
|
+
export type RouterLike<TRouter extends AnyRouter> = RouterLikeInner<TRouter['_def']['_config']['$types'], TRouter['_def']['procedures']>;
|
|
8
|
+
export type RouterLikeInner<TRoot extends AnyRootTypes, TProcedures extends AnyProcedure> = {
|
|
9
|
+
[TKey in keyof TProcedures]: TProcedures[TKey] extends AnyRouter ? RouterLikeInner<TRoot, TProcedures[TKey]['_def']['record']> : TProcedures[TKey] extends AnyQueryProcedure ? QueryLike<TRoot, TProcedures[TKey]> : TProcedures[TKey] extends AnyMutationProcedure ? MutationLike<TRoot, TProcedures[TKey]> : never;
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=routerLike.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routerLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/routerLike.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"routerLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/routerLike.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACV,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,OAAO,SAAS,SAAS,IAAI,eAAe,CACjE,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EACpC,OAAO,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAC9B,CAAC;AACF,MAAM,MAAM,eAAe,CACzB,KAAK,SAAS,YAAY,EAC1B,WAAW,SAAS,YAAY,IAC9B;KACD,IAAI,IAAI,MAAM,WAAW,GAAG,WAAW,CAAC,IAAI,CAAC,SAAS,SAAS,GAC5D,eAAe,CAAC,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,GAC3D,WAAW,CAAC,IAAI,CAAC,SAAS,iBAAiB,GAC3C,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,GACnC,WAAW,CAAC,IAAI,CAAC,SAAS,oBAAoB,GAC9C,YAAY,CAAC,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,GACtC,KAAK;CACV,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { TRPCClientError, TRPCUntypedClient } from '@trpc/client';
|
|
2
|
-
import type { AnyProcedure, AnyQueryProcedure,
|
|
2
|
+
import type { AnyProcedure, AnyQueryProcedure, AnyRootTypes, AnyRouter, Filter, inferProcedureInput, inferTransformedProcedureOutput } from '@trpc/server/unstable-core-do-not-import';
|
|
3
3
|
import type { TrpcQueryOptionsForUseQueries, TrpcQueryOptionsForUseSuspenseQueries } from '../../internals/useQueries';
|
|
4
|
-
type GetQueryOptions<
|
|
4
|
+
type GetQueryOptions<TRoot extends AnyRootTypes, TProcedure extends AnyProcedure> = <TData = inferTransformedProcedureOutput<TRoot, TProcedure>>(input: inferProcedureInput<TProcedure>, opts?: TrpcQueryOptionsForUseQueries<inferTransformedProcedureOutput<TRoot, TProcedure>, TData, TRPCClientError<TRoot>>) => TrpcQueryOptionsForUseQueries<inferTransformedProcedureOutput<TRoot, TProcedure>, TData, TRPCClientError<TRoot>>;
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
8
|
export type UseQueriesProcedureRecord<TRouter extends AnyRouter> = {
|
|
9
|
-
[TKey in keyof Filter<TRouter['_def']['record'], AnyQueryProcedure | AnyRouter>]: TRouter['_def']['record'][TKey] extends AnyRouter ? UseQueriesProcedureRecord<TRouter['_def']['record'][TKey]> : GetQueryOptions<TRouter['_def']['_config'], TRouter['_def']['record'][TKey]>;
|
|
9
|
+
[TKey in keyof Filter<TRouter['_def']['record'], AnyQueryProcedure | AnyRouter>]: TRouter['_def']['record'][TKey] extends AnyRouter ? UseQueriesProcedureRecord<TRouter['_def']['record'][TKey]> : GetQueryOptions<TRouter['_def']['_config']['$types'], TRouter['_def']['record'][TKey]>;
|
|
10
10
|
};
|
|
11
|
-
type GetSuspenseQueryOptions<
|
|
11
|
+
type GetSuspenseQueryOptions<TRoot extends AnyRootTypes, TProcedure extends AnyProcedure> = <TData = inferTransformedProcedureOutput<TRoot, TProcedure>>(input: inferProcedureInput<TProcedure>, opts?: TrpcQueryOptionsForUseSuspenseQueries<inferTransformedProcedureOutput<TRoot, TProcedure>, TData, TRPCClientError<TRoot>>) => TrpcQueryOptionsForUseSuspenseQueries<inferTransformedProcedureOutput<TRoot, TProcedure>, TData, TRPCClientError<TRoot>>;
|
|
12
12
|
/**
|
|
13
13
|
* @internal
|
|
14
14
|
*/
|
|
15
15
|
export type UseSuspenseQueriesProcedureRecord<TRouter extends AnyRouter> = {
|
|
16
|
-
[TKey in keyof Filter<TRouter['_def']['record'], AnyQueryProcedure | AnyRouter>]: TRouter['_def']['record'][TKey] extends AnyRouter ? UseSuspenseQueriesProcedureRecord<TRouter['_def']['record'][TKey]> : GetSuspenseQueryOptions<TRouter['_def']['_config'], TRouter['_def']['record'][TKey]>;
|
|
16
|
+
[TKey in keyof Filter<TRouter['_def']['record'], AnyQueryProcedure | AnyRouter>]: TRouter['_def']['record'][TKey] extends AnyRouter ? UseSuspenseQueriesProcedureRecord<TRouter['_def']['record'][TKey]> : GetSuspenseQueryOptions<TRouter['_def']['_config']['$types'], TRouter['_def']['record'][TKey]>;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* Create proxy for `useQueries` options
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useQueriesProxy.d.ts","sourceRoot":"","sources":["../../../src/shared/proxy/useQueriesProxy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"useQueriesProxy.d.ts","sourceRoot":"","sources":["../../../src/shared/proxy/useQueriesProxy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,MAAM,EACN,mBAAmB,EACnB,+BAA+B,EAChC,MAAM,0CAA0C,CAAC;AAGlD,OAAO,KAAK,EACV,6BAA6B,EAC7B,qCAAqC,EACtC,MAAM,4BAA4B,CAAC;AAGpC,KAAK,eAAe,CAClB,KAAK,SAAS,YAAY,EAC1B,UAAU,SAAS,YAAY,IAC7B,CAAC,KAAK,GAAG,+BAA+B,CAAC,KAAK,EAAE,UAAU,CAAC,EAC7D,KAAK,EAAE,mBAAmB,CAAC,UAAU,CAAC,EACtC,IAAI,CAAC,EAAE,6BAA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