@trpc/tanstack-react-query 11.0.0-rc.788 → 11.0.0-rc.791
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.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createTRPCContext } from './internals/Context';
|
|
2
|
-
export type { TRPCOptionsProxy,
|
|
2
|
+
export type { TRPCOptionsProxy, inferInput, inferOutput, DecorateMutationProcedure, DecorateProcedure, DecorateQueryKeyable, DecorateQueryProcedure, DecorateSubscriptionProcedure, } from './internals/createOptionsProxy';
|
|
3
3
|
export type { TRPCQueryOptions } from './internals/queryOptions';
|
|
4
4
|
export type { TRPCInfiniteQueryOptions } from './internals/infiniteQueryOptions';
|
|
5
5
|
export type { TRPCMutationOptions } from './internals/mutationOptions';
|
|
@@ -25,11 +25,11 @@ export interface DecorateQueryKeyable {
|
|
|
25
25
|
*/
|
|
26
26
|
queryFilter: (input?: undefined, filters?: QueryFilters) => QueryFilters;
|
|
27
27
|
}
|
|
28
|
-
export type
|
|
29
|
-
export type
|
|
28
|
+
export type inferInput<TProcedure extends DecorateQueryProcedure<any> | DecorateMutationProcedure<any>> = TProcedure['~types']['input'];
|
|
29
|
+
export type inferOutput<TProcedure extends DecorateQueryProcedure<any> | DecorateMutationProcedure<any>> = TProcedure['~types']['output'];
|
|
30
30
|
export interface DecorateQueryProcedure<TDef extends ResolverDef> {
|
|
31
31
|
/**
|
|
32
|
-
* @internal prefer using
|
|
32
|
+
* @internal prefer using inferInput and inferOutput to access types
|
|
33
33
|
*/
|
|
34
34
|
'~types': {
|
|
35
35
|
input: TDef['input'];
|
|
@@ -67,7 +67,7 @@ export interface DecorateQueryProcedure<TDef extends ResolverDef> {
|
|
|
67
67
|
}
|
|
68
68
|
export interface DecorateMutationProcedure<TDef extends ResolverDef> {
|
|
69
69
|
/**
|
|
70
|
-
* @internal prefer using
|
|
70
|
+
* @internal prefer using inferInput and inferOutput to access types
|
|
71
71
|
*/
|
|
72
72
|
'~types': {
|
|
73
73
|
input: TDef['input'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/tanstack-react-query",
|
|
3
|
-
"version": "11.0.0-rc.
|
|
3
|
+
"version": "11.0.0-rc.791+4eda4d50f",
|
|
4
4
|
"description": "TanStack React Query Integration for tRPC",
|
|
5
5
|
"author": "juliusmarminge",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@tanstack/react-query": "^5.62.8",
|
|
52
|
-
"@trpc/client": "11.0.0-rc.
|
|
53
|
-
"@trpc/server": "11.0.0-rc.
|
|
52
|
+
"@trpc/client": "11.0.0-rc.791+4eda4d50f",
|
|
53
|
+
"@trpc/server": "11.0.0-rc.791+4eda4d50f",
|
|
54
54
|
"react": ">=18.2.0",
|
|
55
55
|
"react-dom": ">=18.2.0",
|
|
56
56
|
"typescript": ">=5.7.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@tanstack/react-query": "^5.66.0",
|
|
60
|
-
"@trpc/client": "11.0.0-rc.
|
|
61
|
-
"@trpc/server": "11.0.0-rc.
|
|
60
|
+
"@trpc/client": "11.0.0-rc.791+4eda4d50f",
|
|
61
|
+
"@trpc/server": "11.0.0-rc.791+4eda4d50f",
|
|
62
62
|
"@types/node": "^20.10.0",
|
|
63
63
|
"@types/react": "^19.0.0",
|
|
64
64
|
"eslint": "^8.57.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"funding": [
|
|
80
80
|
"https://trpc.io/sponsor"
|
|
81
81
|
],
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "4eda4d50fb6eb3907dce587cd71c7c131ffb02fe"
|
|
83
83
|
}
|
package/src/index.ts
CHANGED
|
@@ -57,13 +57,13 @@ export interface DecorateQueryKeyable {
|
|
|
57
57
|
queryFilter: (input?: undefined, filters?: QueryFilters) => QueryFilters;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export type
|
|
60
|
+
export type inferInput<
|
|
61
61
|
TProcedure extends
|
|
62
62
|
| DecorateQueryProcedure<any>
|
|
63
63
|
| DecorateMutationProcedure<any>,
|
|
64
64
|
> = TProcedure['~types']['input'];
|
|
65
65
|
|
|
66
|
-
export type
|
|
66
|
+
export type inferOutput<
|
|
67
67
|
TProcedure extends
|
|
68
68
|
| DecorateQueryProcedure<any>
|
|
69
69
|
| DecorateMutationProcedure<any>,
|
|
@@ -71,7 +71,7 @@ export type InferOutput<
|
|
|
71
71
|
|
|
72
72
|
export interface DecorateQueryProcedure<TDef extends ResolverDef> {
|
|
73
73
|
/**
|
|
74
|
-
* @internal prefer using
|
|
74
|
+
* @internal prefer using inferInput and inferOutput to access types
|
|
75
75
|
*/
|
|
76
76
|
'~types': {
|
|
77
77
|
input: TDef['input'];
|
|
@@ -124,7 +124,7 @@ export interface DecorateQueryProcedure<TDef extends ResolverDef> {
|
|
|
124
124
|
|
|
125
125
|
export interface DecorateMutationProcedure<TDef extends ResolverDef> {
|
|
126
126
|
/**
|
|
127
|
-
* @internal prefer using
|
|
127
|
+
* @internal prefer using inferInput and inferOutput to access types
|
|
128
128
|
*/
|
|
129
129
|
'~types': {
|
|
130
130
|
input: TDef['input'];
|