@trpc/react-query 10.27.3 → 10.28.1

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.
Files changed (55) hide show
  1. package/dist/{context-1da55110.js → context-4557b3d3.js} +31 -31
  2. package/dist/{createHooksInternal-bd7db1e7.js → createHooksInternal-15c02f18.js} +472 -472
  3. package/dist/createTRPCReact.d.ts +75 -75
  4. package/dist/createTRPCReact.d.ts.map +1 -1
  5. package/dist/index.d.ts +5 -5
  6. package/dist/internals/context.d.ts +127 -127
  7. package/dist/internals/context.d.ts.map +1 -1
  8. package/dist/internals/getArrayQueryKey.d.ts +24 -24
  9. package/dist/internals/getArrayQueryKey.d.ts.map +1 -1
  10. package/dist/internals/getClientArgs.d.ts +1 -1
  11. package/dist/internals/getQueryKey.d.ts +30 -30
  12. package/dist/internals/getQueryKey.d.ts.map +1 -1
  13. package/dist/internals/useHookResult.d.ts +9 -9
  14. package/dist/internals/useQueries.d.ts +27 -27
  15. package/dist/internals/useQueries.d.ts.map +1 -1
  16. package/dist/interop.d.ts +10 -10
  17. package/dist/{queryClient-77734cc3.js → queryClient-1c8d7d8a.js} +3 -3
  18. package/dist/server/index.d.ts +3 -3
  19. package/dist/server/ssgProxy.d.ts +36 -36
  20. package/dist/server/ssgProxy.d.ts.map +1 -1
  21. package/dist/server/types.d.ts +9 -9
  22. package/dist/server/types.d.ts.map +1 -1
  23. package/dist/shared/hooks/createHooksInternal.d.ts +27 -27
  24. package/dist/shared/hooks/createRootHooks.d.ts +6 -6
  25. package/dist/shared/hooks/deprecated/createHooksInternal.d.ts +60 -60
  26. package/dist/shared/hooks/deprecated/createHooksInternal.d.ts.map +1 -1
  27. package/dist/shared/hooks/types.d.ts +81 -81
  28. package/dist/shared/hooks/types.d.ts.map +1 -1
  29. package/dist/shared/index.d.ts +21 -21
  30. package/dist/shared/polymorphism/index.d.ts +4 -4
  31. package/dist/shared/polymorphism/mutationLike.d.ts +17 -17
  32. package/dist/shared/polymorphism/mutationLike.d.ts.map +1 -1
  33. package/dist/shared/polymorphism/queryLike.d.ts +17 -17
  34. package/dist/shared/polymorphism/queryLike.d.ts.map +1 -1
  35. package/dist/shared/polymorphism/routerLike.d.ts +9 -9
  36. package/dist/shared/polymorphism/routerLike.d.ts.map +1 -1
  37. package/dist/shared/polymorphism/utilsLike.d.ts +6 -6
  38. package/dist/shared/polymorphism/utilsLike.d.ts.map +1 -1
  39. package/dist/shared/proxy/decorationProxy.d.ts +7 -7
  40. package/dist/shared/proxy/useQueriesProxy.d.ts +17 -17
  41. package/dist/shared/proxy/useQueriesProxy.d.ts.map +1 -1
  42. package/dist/shared/proxy/utilsProxy.d.ts +93 -93
  43. package/dist/shared/proxy/utilsProxy.d.ts.map +1 -1
  44. package/dist/shared/queryClient.d.ts +15 -15
  45. package/dist/shared/queryClient.d.ts.map +1 -1
  46. package/dist/shared/types.d.ts +52 -52
  47. package/dist/ssg/index.d.ts +14 -14
  48. package/dist/ssg/ssg.d.ts +15 -15
  49. package/dist/ssg/ssg.d.ts.map +1 -1
  50. package/dist/utils/inferReactQueryProcedure.d.ts +23 -23
  51. package/dist/utils/inferReactQueryProcedure.d.ts.map +1 -1
  52. package/package.json +12 -8
  53. package/src/createTRPCReact.tsx +1 -1
  54. package/src/shared/proxy/utilsProxy.ts +1 -1
  55. package/src/internals/getArrayQueryKey.test.ts +0 -87
@@ -1,82 +1,82 @@
1
- import { DefinedUseQueryResult, DehydratedState, InfiniteQueryObserverSuccessResult, InitialDataFunction, QueryObserverSuccessResult, QueryOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
- import { CreateTRPCClientOptions, TRPCClient, TRPCRequestOptions } from '@trpc/client';
3
- import { AnyRouter } from '@trpc/server';
4
- import { ReactNode } from 'react';
5
- import { TRPCContextProps } from '../../internals/context';
6
- import { TRPCHookResult } from '../../internals/useHookResult';
7
- export declare type OutputWithCursor<TData, TCursor = any> = {
8
- cursor: TCursor | null;
9
- data: TData;
10
- };
11
- export interface TRPCReactRequestOptions extends Omit<TRPCRequestOptions, 'signal'> {
12
- /**
13
- * Opt out of SSR for this query by passing `ssr: false`
14
- */
15
- ssr?: boolean;
16
- /**
17
- * Opt out or into aborting request on unmount
18
- */
19
- abortOnUnmount?: boolean;
20
- }
21
- export interface TRPCUseQueryBaseOptions {
22
- /**
23
- * tRPC-related options
24
- */
25
- trpc?: TRPCReactRequestOptions;
26
- }
27
- export interface UseTRPCQueryOptions<TPath, TInput, TOutput, TData, TError> extends UseQueryOptions<TOutput, TError, TData, [TPath, TInput]>, TRPCUseQueryBaseOptions {
28
- }
29
- /** @internal **/
30
- export interface DefinedUseTRPCQueryOptions<TPath, TInput, TOutput, TData, TError> extends UseTRPCQueryOptions<TPath, TInput, TOutput, TData, TError> {
31
- initialData: TOutput | InitialDataFunction<TOutput>;
32
- }
33
- export interface TRPCQueryOptions<TPath, TInput, TData, TError> extends QueryOptions<TData, TError, TData, [TPath, TInput]>, TRPCUseQueryBaseOptions {
34
- }
35
- export declare type ExtractCursorType<TInput> = TInput extends {
36
- cursor: any;
37
- } ? TInput['cursor'] : unknown;
38
- export interface UseTRPCInfiniteQueryOptions<TPath, TInput, TOutput, TError> extends UseInfiniteQueryOptions<TOutput, TError, TOutput, TOutput, [
39
- TPath,
40
- Omit<TInput, 'cursor'>
41
- ]>, TRPCUseQueryBaseOptions {
42
- initialCursor?: ExtractCursorType<TInput>;
43
- }
44
- export interface UseTRPCMutationOptions<TInput, TError, TOutput, TContext = unknown> extends UseMutationOptions<TOutput, TError, TInput, TContext>, TRPCUseQueryBaseOptions {
45
- }
46
- export interface UseTRPCSubscriptionOptions<TOutput, TError> {
47
- enabled?: boolean;
48
- onStarted?: () => void;
49
- onData: (data: TOutput) => void;
50
- onError?: (err: TError) => void;
51
- }
52
- export interface TRPCProviderProps<TRouter extends AnyRouter, TSSRContext> extends TRPCContextProps<TRouter, TSSRContext> {
53
- children: ReactNode;
54
- }
55
- export declare type TRPCProvider<TRouter extends AnyRouter, TSSRContext> = (props: TRPCProviderProps<TRouter, TSSRContext>) => JSX.Element;
56
- export declare type UseDehydratedState<TRouter extends AnyRouter> = (client: TRPCClient<TRouter>, trpcState: DehydratedState | undefined) => DehydratedState | undefined;
57
- export declare type CreateClient<TRouter extends AnyRouter> = (opts: CreateTRPCClientOptions<TRouter>) => TRPCClient<TRouter>;
58
- /**
59
- * @internal
60
- */
61
- export declare type UseTRPCQueryResult<TData, TError> = UseQueryResult<TData, TError> & TRPCHookResult;
62
- /**
63
- * @internal
64
- */
65
- export declare type DefinedUseTRPCQueryResult<TData, TError> = DefinedUseQueryResult<TData, TError> & TRPCHookResult;
66
- /**
67
- * @internal
68
- */
69
- export declare type UseTRPCQuerySuccessResult<TData, TError> = QueryObserverSuccessResult<TData, TError> & TRPCHookResult;
70
- /**
71
- * @internal
72
- */
73
- export declare type UseTRPCInfiniteQueryResult<TData, TError> = UseInfiniteQueryResult<TData, TError> & TRPCHookResult;
74
- /**
75
- * @internal
76
- */
77
- export declare type UseTRPCInfiniteQuerySuccessResult<TData, TError> = InfiniteQueryObserverSuccessResult<TData, TError> & TRPCHookResult;
78
- /**
79
- * @internal
80
- */
81
- export declare type UseTRPCMutationResult<TData, TError, TVariables, TContext> = UseMutationResult<TData, TError, TVariables, TContext> & TRPCHookResult;
1
+ import { DefinedUseQueryResult, DehydratedState, InfiniteQueryObserverSuccessResult, InitialDataFunction, QueryObserverSuccessResult, QueryOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
+ import { CreateTRPCClientOptions, TRPCClient, TRPCRequestOptions } from '@trpc/client';
3
+ import { AnyRouter } from '@trpc/server';
4
+ import { ReactNode } from 'react';
5
+ import { TRPCContextProps } from '../../internals/context';
6
+ import { TRPCHookResult } from '../../internals/useHookResult';
7
+ export type OutputWithCursor<TData, TCursor = any> = {
8
+ cursor: TCursor | null;
9
+ data: TData;
10
+ };
11
+ export interface TRPCReactRequestOptions extends Omit<TRPCRequestOptions, 'signal'> {
12
+ /**
13
+ * Opt out of SSR for this query by passing `ssr: false`
14
+ */
15
+ ssr?: boolean;
16
+ /**
17
+ * Opt out or into aborting request on unmount
18
+ */
19
+ abortOnUnmount?: boolean;
20
+ }
21
+ export interface TRPCUseQueryBaseOptions {
22
+ /**
23
+ * tRPC-related options
24
+ */
25
+ trpc?: TRPCReactRequestOptions;
26
+ }
27
+ export interface UseTRPCQueryOptions<TPath, TInput, TOutput, TData, TError> extends UseQueryOptions<TOutput, TError, TData, [TPath, TInput]>, TRPCUseQueryBaseOptions {
28
+ }
29
+ /** @internal **/
30
+ export interface DefinedUseTRPCQueryOptions<TPath, TInput, TOutput, TData, TError> extends UseTRPCQueryOptions<TPath, TInput, TOutput, TData, TError> {
31
+ initialData: TOutput | InitialDataFunction<TOutput>;
32
+ }
33
+ export interface TRPCQueryOptions<TPath, TInput, TData, TError> extends QueryOptions<TData, TError, TData, [TPath, TInput]>, TRPCUseQueryBaseOptions {
34
+ }
35
+ export type ExtractCursorType<TInput> = TInput extends {
36
+ cursor: any;
37
+ } ? TInput['cursor'] : unknown;
38
+ export interface UseTRPCInfiniteQueryOptions<TPath, TInput, TOutput, TError> extends UseInfiniteQueryOptions<TOutput, TError, TOutput, TOutput, [
39
+ TPath,
40
+ Omit<TInput, 'cursor'>
41
+ ]>, TRPCUseQueryBaseOptions {
42
+ initialCursor?: ExtractCursorType<TInput>;
43
+ }
44
+ export interface UseTRPCMutationOptions<TInput, TError, TOutput, TContext = unknown> extends UseMutationOptions<TOutput, TError, TInput, TContext>, TRPCUseQueryBaseOptions {
45
+ }
46
+ export interface UseTRPCSubscriptionOptions<TOutput, TError> {
47
+ enabled?: boolean;
48
+ onStarted?: () => void;
49
+ onData: (data: TOutput) => void;
50
+ onError?: (err: TError) => void;
51
+ }
52
+ export interface TRPCProviderProps<TRouter extends AnyRouter, TSSRContext> extends TRPCContextProps<TRouter, TSSRContext> {
53
+ children: ReactNode;
54
+ }
55
+ export type TRPCProvider<TRouter extends AnyRouter, TSSRContext> = (props: TRPCProviderProps<TRouter, TSSRContext>) => JSX.Element;
56
+ export type UseDehydratedState<TRouter extends AnyRouter> = (client: TRPCClient<TRouter>, trpcState: DehydratedState | undefined) => DehydratedState | undefined;
57
+ export type CreateClient<TRouter extends AnyRouter> = (opts: CreateTRPCClientOptions<TRouter>) => TRPCClient<TRouter>;
58
+ /**
59
+ * @internal
60
+ */
61
+ export type UseTRPCQueryResult<TData, TError> = UseQueryResult<TData, TError> & TRPCHookResult;
62
+ /**
63
+ * @internal
64
+ */
65
+ export type DefinedUseTRPCQueryResult<TData, TError> = DefinedUseQueryResult<TData, TError> & TRPCHookResult;
66
+ /**
67
+ * @internal
68
+ */
69
+ export type UseTRPCQuerySuccessResult<TData, TError> = QueryObserverSuccessResult<TData, TError> & TRPCHookResult;
70
+ /**
71
+ * @internal
72
+ */
73
+ export type UseTRPCInfiniteQueryResult<TData, TError> = UseInfiniteQueryResult<TData, TError> & TRPCHookResult;
74
+ /**
75
+ * @internal
76
+ */
77
+ export type UseTRPCInfiniteQuerySuccessResult<TData, TError> = InfiniteQueryObserverSuccessResult<TData, TError> & TRPCHookResult;
78
+ /**
79
+ * @internal
80
+ */
81
+ export type UseTRPCMutationResult<TData, TError, TVariables, TContext> = UseMutationResult<TData, TError, TVariables, TContext> & TRPCHookResult;
82
82
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/hooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,kCAAkC,EAClC,mBAAmB,EACnB,0BAA0B,EAC1B,YAAY,EACZ,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACf,MAAM,uBAAuB,CAAC;AAC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BAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,GAAG,cAAc,CAAC"}
@@ -1,22 +1,22 @@
1
- export * from './proxy/decorationProxy';
2
- export * from './proxy/utilsProxy';
3
- export * from './proxy/useQueriesProxy';
4
- export type { DecoratedProcedureRecord, DecorateProcedure, } from '../createTRPCReact';
5
- export type { TRPCUseQueries } from '../internals/useQueries';
6
- export * from './hooks/createRootHooks';
7
- export * from './queryClient';
8
- export * from './types';
9
- export * from './hooks/types';
10
- export * from './polymorphism';
11
- export {
12
- /**
13
- * @deprecated this is an internal function
14
- */
15
- getClientArgs, } from '../internals/getClientArgs';
16
- export {
17
- /**
18
- * @deprecated
19
- */
20
- TRPCContext, } from './../internals/context';
21
- export * from '../internals/context';
1
+ export * from './proxy/decorationProxy';
2
+ export * from './proxy/utilsProxy';
3
+ export * from './proxy/useQueriesProxy';
4
+ export type { DecoratedProcedureRecord, DecorateProcedure, } from '../createTRPCReact';
5
+ export type { TRPCUseQueries } from '../internals/useQueries';
6
+ export * from './hooks/createRootHooks';
7
+ export * from './queryClient';
8
+ export * from './types';
9
+ export * from './hooks/types';
10
+ export * from './polymorphism';
11
+ export {
12
+ /**
13
+ * @deprecated this is an internal function
14
+ */
15
+ getClientArgs, } from '../internals/getClientArgs';
16
+ export {
17
+ /**
18
+ * @deprecated
19
+ */
20
+ TRPCContext, } from './../internals/context';
21
+ export * from '../internals/context';
22
22
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- export * from './mutationLike';
2
- export * from './queryLike';
3
- export * from './routerLike';
4
- export * from './utilsLike';
1
+ export * from './mutationLike';
2
+ export * from './queryLike';
3
+ export * from './routerLike';
4
+ export * from './utilsLike';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,18 +1,18 @@
1
- import { AnyProcedure, inferProcedureInput } from '@trpc/server';
2
- import { inferTransformedProcedureOutput } from '@trpc/server/shared';
3
- import { InferMutationOptions, InferMutationResult } from '../../utils/inferReactQueryProcedure';
4
- /**
5
- * Use to describe a mutation route which matches a given mutation procedure's interface
6
- */
7
- export declare type MutationLike<TProcedure extends AnyProcedure = AnyProcedure> = {
8
- useMutation: (opts?: InferMutationOptions<TProcedure>) => InferMutationResult<TProcedure>;
9
- };
10
- /**
11
- * Use to unwrap a MutationLike's input
12
- */
13
- export declare type InferMutationLikeInput<TMutationLike extends MutationLike> = TMutationLike extends MutationLike<infer TProcedure> ? inferProcedureInput<TProcedure> : never;
14
- /**
15
- * Use to unwrap a MutationLike's data output
16
- */
17
- export declare type InferMutationLikeData<TMutationLike extends MutationLike> = TMutationLike extends MutationLike<infer TProcedure> ? inferTransformedProcedureOutput<TProcedure> : never;
1
+ import { AnyProcedure, inferProcedureInput } from '@trpc/server';
2
+ import { inferTransformedProcedureOutput } from '@trpc/server/shared';
3
+ import { InferMutationOptions, InferMutationResult } from '../../utils/inferReactQueryProcedure';
4
+ /**
5
+ * Use to describe a mutation route which matches a given mutation procedure's interface
6
+ */
7
+ export type MutationLike<TProcedure extends AnyProcedure = AnyProcedure> = {
8
+ useMutation: (opts?: InferMutationOptions<TProcedure>) => InferMutationResult<TProcedure>;
9
+ };
10
+ /**
11
+ * Use to unwrap a MutationLike's input
12
+ */
13
+ export type InferMutationLikeInput<TMutationLike extends MutationLike> = TMutationLike extends MutationLike<infer TProcedure> ? inferProcedureInput<TProcedure> : never;
14
+ /**
15
+ * Use to unwrap a MutationLike's data output
16
+ */
17
+ export type InferMutationLikeData<TMutationLike extends MutationLike> = TMutationLike extends MutationLike<infer TProcedure> ? inferTransformedProcedureOutput<TProcedure> : never;
18
18
  //# 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,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,+BAA+B,EAAE,M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;;GAEG;AACH,MAAM,MAAM,qBAAqB,CAAC,aAAa,SAAS,YAAY,IAClE,aAAa,SAAS,YAAY,CAAC,MAAM,UAAU,CAAC,GAChD,+BAA+B,CAAC,UAAU,CAAC,GAC3C,KAAK,CAAC"}
@@ -1,18 +1,18 @@
1
- import { AnyProcedure, inferProcedureInput } from '@trpc/server';
2
- import { inferTransformedProcedureOutput } from '@trpc/server/shared';
3
- import { InferQueryOptions, InferQueryResult } from '../../utils/inferReactQueryProcedure';
4
- /**
5
- * Use to request a query route which matches a given query procedure's interface
6
- */
7
- export declare type QueryLike<TProcedure extends AnyProcedure = AnyProcedure> = {
8
- useQuery: (variables: inferProcedureInput<TProcedure>, opts?: InferQueryOptions<TProcedure, any>) => InferQueryResult<TProcedure>;
9
- };
10
- /**
11
- * Use to unwrap a QueryLike's input
12
- */
13
- export declare type InferQueryLikeInput<TQueryLike extends QueryLike> = TQueryLike extends QueryLike<infer TProcedure> ? inferProcedureInput<TProcedure> : never;
14
- /**
15
- * Use to unwrap a QueryLike's data output
16
- */
17
- export declare type InferQueryLikeData<TQueryLike extends QueryLike> = TQueryLike extends QueryLike<infer TProcedure> ? inferTransformedProcedureOutput<TProcedure> : never;
1
+ import { AnyProcedure, inferProcedureInput } from '@trpc/server';
2
+ import { inferTransformedProcedureOutput } from '@trpc/server/shared';
3
+ import { InferQueryOptions, InferQueryResult } from '../../utils/inferReactQueryProcedure';
4
+ /**
5
+ * Use to request a query route which matches a given query procedure's interface
6
+ */
7
+ export type QueryLike<TProcedure extends AnyProcedure = AnyProcedure> = {
8
+ useQuery: (variables: inferProcedureInput<TProcedure>, opts?: InferQueryOptions<TProcedure, any>) => InferQueryResult<TProcedure>;
9
+ };
10
+ /**
11
+ * Use to unwrap a QueryLike's input
12
+ */
13
+ export type InferQueryLikeInput<TQueryLike extends QueryLike> = TQueryLike extends QueryLike<infer TProcedure> ? inferProcedureInput<TProcedure> : never;
14
+ /**
15
+ * Use to unwrap a QueryLike's data output
16
+ */
17
+ export type InferQueryLikeData<TQueryLike extends QueryLike> = TQueryLike extends QueryLike<infer TProcedure> ? inferTransformedProcedureOutput<TProcedure> : never;
18
18
  //# 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,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,sCAAsC,CAAC;AAE9C;;GAEG;AACH,oBAAY,SAAS,CAAC,UAAU,SAAS,YAAY,GAAG,YAAY,IAAI;IACtE,QAAQ,EAAE,CACR,SAAS,EAAE,mBAAmB,CAAC,UAAU,CAAC,EAC1C,IAAI,CAAC,EAAE,iBAAiB,CAAC,UAAU,EAAE,GAAG,CAAC,KACtC,gBAAgB,CAAC,UAAU,CAAC,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,oBAAY,mBAAmB,CAAC,UAAU,SAAS,SAAS,IAC1D,UAAU,SAAS,SAAS,CAAC,MAAM,UAAU,CAAC,GAC1C,mBAAmB,CAAC,UAAU,CAAC,GAC/B,KAAK,CAAC;AAEZ;;GAEG;AACH,oBAAY,kBAAkB,CAAC,UAAU,SAAS,SAAS,IACzD,UAAU,SAAS,SAAS,CAAC,MAAM,UAAU,CAAC,GAC1C,+BAA+B,CAAC,UAAU,CAAC,GAC3C,KAAK,CAAC"}
1
+ {"version":3,"file":"queryLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/queryLike.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,sCAAsC,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,UAAU,SAAS,YAAY,GAAG,YAAY,IAAI;IACtE,QAAQ,EAAE,CACR,SAAS,EAAE,mBAAmB,CAAC,UAAU,CAAC,EAC1C,IAAI,CAAC,EAAE,iBAAiB,CAAC,UAAU,EAAE,GAAG,CAAC,KACtC,gBAAgB,CAAC,UAAU,CAAC,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,UAAU,SAAS,SAAS,IAC1D,UAAU,SAAS,SAAS,CAAC,MAAM,UAAU,CAAC,GAC1C,mBAAmB,CAAC,UAAU,CAAC,GAC/B,KAAK,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,kBAAkB,CAAC,UAAU,SAAS,SAAS,IACzD,UAAU,SAAS,SAAS,CAAC,MAAM,UAAU,CAAC,GAC1C,+BAA+B,CAAC,UAAU,CAAC,GAC3C,KAAK,CAAC"}
@@ -1,10 +1,10 @@
1
- import { AnyMutationProcedure, AnyQueryProcedure, AnyRouter } from '@trpc/server';
2
- import { MutationLike } from './mutationLike';
3
- import { QueryLike } from './queryLike';
4
- /**
5
- * Use to describe a route path which matches a given route's interface
6
- */
7
- export declare type RouterLike<TRouter extends AnyRouter, TRecord extends TRouter['_def']['record'] = TRouter['_def']['record']> = {
8
- [key in keyof TRecord]: TRecord[key] extends AnyRouter ? RouterLike<TRecord[key]> : TRecord[key] extends AnyQueryProcedure ? QueryLike<TRecord[key]> : TRecord[key] extends AnyMutationProcedure ? MutationLike<TRecord[key]> : never;
9
- };
1
+ import { AnyMutationProcedure, AnyQueryProcedure, AnyRouter } from '@trpc/server';
2
+ import { MutationLike } from './mutationLike';
3
+ import { QueryLike } from './queryLike';
4
+ /**
5
+ * Use to describe a route path which matches a given route's interface
6
+ */
7
+ export type RouterLike<TRouter extends AnyRouter, TRecord extends TRouter['_def']['record'] = TRouter['_def']['record']> = {
8
+ [key in keyof TRecord]: TRecord[key] extends AnyRouter ? RouterLike<TRecord[key]> : TRecord[key] extends AnyQueryProcedure ? QueryLike<TRecord[key]> : TRecord[key] extends AnyMutationProcedure ? MutationLike<TRecord[key]> : never;
9
+ };
10
10
  //# 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,EACL,oBAAoB,EACpB,iBAAiB,EACjB,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;GAEG;AACH,oBAAY,UAAU,CACpB,OAAO,SAAS,SAAS,EACzB,OAAO,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,IACnE;KACD,GAAG,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,SAAS,GAClD,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GACxB,OAAO,CAAC,GAAG,CAAC,SAAS,iBAAiB,GACtC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GACvB,OAAO,CAAC,GAAG,CAAC,SAAS,oBAAoB,GACzC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAC1B,KAAK;CACV,CAAC"}
1
+ {"version":3,"file":"routerLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/routerLike.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,UAAU,CACpB,OAAO,SAAS,SAAS,EACzB,OAAO,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,IACnE;KACD,GAAG,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,SAAS,GAClD,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GACxB,OAAO,CAAC,GAAG,CAAC,SAAS,iBAAiB,GACtC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GACvB,OAAO,CAAC,GAAG,CAAC,SAAS,oBAAoB,GACzC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAC1B,KAAK;CACV,CAAC"}
@@ -1,7 +1,7 @@
1
- import { AnyRouter } from '@trpc/server';
2
- import { DecoratedProcedureUtilsRecord } from '../proxy/utilsProxy';
3
- /**
4
- * Use to describe a Utils/Context path which matches the given route's interface
5
- */
6
- export declare type UtilsLike<TRouter extends AnyRouter> = DecoratedProcedureUtilsRecord<TRouter>;
1
+ import { AnyRouter } from '@trpc/server';
2
+ import { DecoratedProcedureUtilsRecord } from '../proxy/utilsProxy';
3
+ /**
4
+ * Use to describe a Utils/Context path which matches the given route's interface
5
+ */
6
+ export type UtilsLike<TRouter extends AnyRouter> = DecoratedProcedureUtilsRecord<TRouter>;
7
7
  //# sourceMappingURL=utilsLike.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utilsLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/utilsLike.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAEpE;;GAEG;AACH,oBAAY,SAAS,CAAC,OAAO,SAAS,SAAS,IAC7C,6BAA6B,CAAC,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"utilsLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/utilsLike.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,OAAO,SAAS,SAAS,IAC7C,6BAA6B,CAAC,OAAO,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
- import { AnyRouter } from '@trpc/server';
2
- import { CreateReactQueryHooks } from '../hooks/createRootHooks';
3
- /**
4
- * Create proxy for decorating procedures
5
- * @internal
6
- */
7
- export declare function createReactProxyDecoration<TRouter extends AnyRouter, TSSRContext = unknown>(name: string, hooks: CreateReactQueryHooks<TRouter, TSSRContext>): unknown;
1
+ import { AnyRouter } from '@trpc/server';
2
+ import { CreateReactQueryHooks } from '../hooks/createRootHooks';
3
+ /**
4
+ * Create proxy for decorating procedures
5
+ * @internal
6
+ */
7
+ export declare function createReactProxyDecoration<TRouter extends AnyRouter, TSSRContext = unknown>(name: string, hooks: CreateReactQueryHooks<TRouter, TSSRContext>): unknown;
8
8
  //# sourceMappingURL=decorationProxy.d.ts.map
@@ -1,18 +1,18 @@
1
- import { TRPCClient, TRPCClientError } from '@trpc/client';
2
- import { AnyProcedure, AnyQueryProcedure, AnyRouter, Filter, inferProcedureInput } from '@trpc/server';
3
- import { inferTransformedProcedureOutput } from '@trpc/server/shared';
4
- import { TrpcQueryOptionsForUseQueries } from '../../internals/useQueries';
5
- declare type GetQueryOptions<TProcedure extends AnyProcedure, TPath extends string> = <TData = inferTransformedProcedureOutput<TProcedure>>(input: inferProcedureInput<TProcedure>, opts?: TrpcQueryOptionsForUseQueries<TPath, inferProcedureInput<TProcedure>, inferTransformedProcedureOutput<TProcedure>, TData, TRPCClientError<TProcedure>>) => TrpcQueryOptionsForUseQueries<TPath, inferProcedureInput<TProcedure>, inferTransformedProcedureOutput<TProcedure>, TData, TRPCClientError<TProcedure>>;
6
- /**
7
- * @internal
8
- */
9
- export declare type UseQueriesProcedureRecord<TRouter extends AnyRouter, TPath extends string = ''> = {
10
- [TKey in keyof Filter<TRouter['_def']['record'], AnyRouter | AnyQueryProcedure>]: TRouter['_def']['record'][TKey] extends AnyRouter ? UseQueriesProcedureRecord<TRouter['_def']['record'][TKey], `${TPath}${TKey & string}.`> : GetQueryOptions<TRouter['_def']['record'][TKey], `${TPath}${TKey & string}`>;
11
- };
12
- /**
13
- * Create proxy for `useQueries` options
14
- * @internal
15
- */
16
- export declare function createUseQueriesProxy<TRouter extends AnyRouter>(client: TRPCClient<TRouter>): UseQueriesProcedureRecord<TRouter, "">;
17
- export {};
1
+ import { TRPCClient, TRPCClientError } from '@trpc/client';
2
+ import { AnyProcedure, AnyQueryProcedure, AnyRouter, Filter, inferProcedureInput } from '@trpc/server';
3
+ import { inferTransformedProcedureOutput } from '@trpc/server/shared';
4
+ import { TrpcQueryOptionsForUseQueries } from '../../internals/useQueries';
5
+ type GetQueryOptions<TProcedure extends AnyProcedure, TPath extends string> = <TData = inferTransformedProcedureOutput<TProcedure>>(input: inferProcedureInput<TProcedure>, opts?: TrpcQueryOptionsForUseQueries<TPath, inferProcedureInput<TProcedure>, inferTransformedProcedureOutput<TProcedure>, TData, TRPCClientError<TProcedure>>) => TrpcQueryOptionsForUseQueries<TPath, inferProcedureInput<TProcedure>, inferTransformedProcedureOutput<TProcedure>, TData, TRPCClientError<TProcedure>>;
6
+ /**
7
+ * @internal
8
+ */
9
+ export type UseQueriesProcedureRecord<TRouter extends AnyRouter, TPath extends string = ''> = {
10
+ [TKey in keyof Filter<TRouter['_def']['record'], AnyRouter | AnyQueryProcedure>]: TRouter['_def']['record'][TKey] extends AnyRouter ? UseQueriesProcedureRecord<TRouter['_def']['record'][TKey], `${TPath}${TKey & string}.`> : GetQueryOptions<TRouter['_def']['record'][TKey], `${TPath}${TKey & string}`>;
11
+ };
12
+ /**
13
+ * Create proxy for `useQueries` options
14
+ * @internal
15
+ */
16
+ export declare function createUseQueriesProxy<TRouter extends AnyRouter>(client: TRPCClient<TRouter>): UseQueriesProcedureRecord<TRouter, "">;
17
+ export {};
18
18
  //# sourceMappingURL=useQueriesProxy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useQueriesProxy.d.ts","sourceRoot":"","sources":["../../../src/shared/proxy/useQueriesProxy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,MAAM,EACN,mBAAmB,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,+BAA+B,EAChC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAE3E,aAAK,eAAe,CAAC,UAAU,SAAS,YAAY,EAAE,KAAK,SAAS,MAAM,IAAI,CAC5E,KAAK,GAAG,+BAA+B,CAAC,UAAU,CAAC,EAEnD,KAAK,EAAE,mBAAmB,CAAC,UAAU,CAAC,EACtC,IAAI,CAAC,EAAE,6BAA6B,CAClC,KAAK,EACL,mBAAmB,CAAC,UAAU,CAAC,EAC/B,+BAA+B,CAAC,UAAU,CAAC,EAC3C,KAAK,EACL,eAAe,CAAC,UAAU,CAAC,CAC5B,KACE,6BAA6B,CAChC,KAAK,EACL,mBAAmB,CAAC,UAAU,CAAC,EAC/B,+BAA+B,CAAC,UAAU,CAAC,EAC3C,KAAK,EACL,eAAe,CAAC,UAAU,CAAC,CAC5B,CAAC;AAEF;;GAEG;AACH,oBAAY,yBAAyB,CACnC,OAAO,SAAS,SAAS,EACzB,KAAK,SAAS,MAAM,GAAG,EAAE,IACvB;KACD,IAAI,IAAI,MAAM,MAAM,CACnB,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,EACzB,SAAS,GAAG,iBAAiB,CAC9B,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC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