@trpc/server 10.0.0-alpha.29 → 10.0.0-alpha.31
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/adapters/node-http/types.d.ts +2 -2
- package/dist/adapters/node-http/types.d.ts.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/initTRPC.d.ts +30 -25
- package/dist/core/initTRPC.d.ts.map +1 -1
- package/dist/core/internals/__generated__/mergeRoutersGeneric.d.ts +121 -41
- package/dist/core/internals/__generated__/mergeRoutersGeneric.d.ts.map +1 -1
- package/dist/core/internals/config.d.ts +3 -5
- package/dist/core/internals/config.d.ts.map +1 -1
- package/dist/core/internals/internalProcedure.d.ts +18 -1
- package/dist/core/internals/internalProcedure.d.ts.map +1 -1
- package/dist/core/internals/mergeRouters.d.ts.map +1 -1
- package/dist/core/internals/prefixObjectKeys.d.ts +2 -0
- package/dist/core/internals/prefixObjectKeys.d.ts.map +1 -0
- package/dist/core/internals/procedureBuilder.d.ts +39 -8
- package/dist/core/internals/procedureBuilder.d.ts.map +1 -1
- package/dist/core/middleware.d.ts +16 -7
- package/dist/core/middleware.d.ts.map +1 -1
- package/dist/core/procedure.d.ts +26 -3
- package/dist/core/procedure.d.ts.map +1 -1
- package/dist/core/router.d.ts +52 -60
- package/dist/core/router.d.ts.map +1 -1
- package/dist/core/types.d.ts +9 -9
- package/dist/core/types.d.ts.map +1 -1
- package/dist/deprecated/interop.d.ts +23 -23
- package/dist/deprecated/interop.d.ts.map +1 -1
- package/dist/http/internals/types.d.ts +3 -3
- package/dist/http/internals/types.d.ts.map +1 -1
- package/dist/index.js +100 -56
- package/dist/index.mjs +100 -56
- package/dist/internals/types.d.ts +2 -2
- package/dist/internals/types.d.ts.map +1 -1
- package/dist/observable/observable.d.ts +1 -1
- package/dist/observable/observable.d.ts.map +1 -1
- package/dist/types.d.ts +8 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/adapters/node-http/nodeHTTPRequestHandler.ts +2 -2
- package/src/adapters/node-http/types.ts +2 -4
- package/src/core/index.ts +1 -1
- package/src/core/initTRPC.ts +14 -9
- package/src/core/internals/__generated__/mergeRoutersGeneric.ts +184 -104
- package/src/core/internals/config.ts +4 -5
- package/src/core/internals/internalProcedure.ts +52 -21
- package/src/core/internals/mergeRouters.ts +3 -15
- package/src/core/internals/prefixObjectKeys.ts +9 -0
- package/src/core/internals/procedureBuilder.ts +92 -9
- package/src/core/middleware.ts +7 -4
- package/src/core/procedure.ts +38 -2
- package/src/core/router.ts +143 -136
- package/src/core/types.ts +33 -16
- package/src/deprecated/interop.ts +110 -50
- package/src/http/internals/types.ts +3 -3
- package/src/internals/types.ts +2 -2
- package/src/observable/observable.ts +6 -3
- package/src/types.ts +9 -0
- package/dist/core/internals/mergeRoutersGeneric.d.ts +0 -21
- package/dist/core/internals/mergeRoutersGeneric.d.ts.map +0 -1
- package/src/core/internals/mergeRoutersGeneric.ts +0 -35
package/dist/core/router.d.ts
CHANGED
|
@@ -1,19 +1,38 @@
|
|
|
1
|
+
import { inferProcedureOutput } from '.';
|
|
2
|
+
import { Filter, Prefixer } from '..';
|
|
1
3
|
import { TRPCError } from '../error/TRPCError';
|
|
2
4
|
import { ErrorFormatter } from '../error/formatter';
|
|
3
5
|
import { TRPCErrorShape } from '../rpc';
|
|
4
6
|
import { CombinedDataTransformer } from '../transformer';
|
|
5
7
|
import { RootConfig } from './internals/config';
|
|
6
|
-
import {
|
|
7
|
-
import { Procedure } from './procedure';
|
|
8
|
+
import { MutationProcedure, Procedure, QueryProcedure, SubscriptionProcedure } from './procedure';
|
|
8
9
|
import { ProcedureType } from './types';
|
|
9
|
-
|
|
10
|
-
declare type
|
|
10
|
+
declare type ProcedureRecord = Record<string, Procedure<any>>;
|
|
11
|
+
export declare type ProcedureRouterRecord = Record<string, Procedure<any> | AnyRouter>;
|
|
11
12
|
export interface ProcedureStructure {
|
|
12
|
-
queries:
|
|
13
|
-
mutations:
|
|
14
|
-
subscriptions:
|
|
13
|
+
queries: Record<string, QueryProcedure<any>>;
|
|
14
|
+
mutations: Record<string, MutationProcedure<any>>;
|
|
15
|
+
subscriptions: Record<string, SubscriptionProcedure<any>>;
|
|
16
|
+
procedures: ProcedureRecord;
|
|
15
17
|
}
|
|
16
|
-
|
|
18
|
+
declare type ObjKeyof<T> = T extends object ? keyof T : never;
|
|
19
|
+
declare type KeyofKeyof<T> = ObjKeyof<T> | {
|
|
20
|
+
[K in keyof T]: ObjKeyof<T[K]>;
|
|
21
|
+
}[keyof T];
|
|
22
|
+
declare type StripNever<T> = Pick<T, {
|
|
23
|
+
[K in keyof T]: [T[K]] extends [never] ? never : K;
|
|
24
|
+
}[keyof T]>;
|
|
25
|
+
declare type Lookup<T, K> = T extends any ? (K extends keyof T ? T[K] : never) : never;
|
|
26
|
+
declare type SimpleFlatten<T> = T extends object ? StripNever<{
|
|
27
|
+
[K in KeyofKeyof<T>]: Exclude<K extends keyof T ? T[K] : never, object> | {
|
|
28
|
+
[P in keyof T]: Lookup<T[P], K>;
|
|
29
|
+
}[keyof T];
|
|
30
|
+
}> : T;
|
|
31
|
+
declare type PrefixedProcedures<T extends ProcedureRouterRecord> = {
|
|
32
|
+
[K in keyof T]: T[K] extends AnyRouter ? T[K] extends Procedure<any> ? never : Prefixer<T[K]['_def']['procedures'], `${K & string}.`> : never;
|
|
33
|
+
};
|
|
34
|
+
export interface RouterDef<TContext, TErrorShape extends TRPCErrorShape<number>, TMeta extends Record<string, unknown>, TRecord extends ProcedureRouterRecord> {
|
|
35
|
+
router: true;
|
|
17
36
|
/**
|
|
18
37
|
* @internal
|
|
19
38
|
*/
|
|
@@ -26,97 +45,70 @@ export interface RouterParams<TContext, TErrorShape extends TRPCErrorShape<numbe
|
|
|
26
45
|
* @internal
|
|
27
46
|
*/
|
|
28
47
|
_meta: TMeta;
|
|
29
|
-
queries: TQueries;
|
|
30
|
-
mutations: TMutations;
|
|
31
|
-
subscriptions: TSubscriptions;
|
|
32
48
|
errorFormatter: ErrorFormatter<TContext, TErrorShape>;
|
|
33
49
|
transformer: CombinedDataTransformer;
|
|
50
|
+
procedures: Filter<TRecord, Procedure<any>> & SimpleFlatten<PrefixedProcedures<TRecord>>;
|
|
51
|
+
routers: Filter<TRecord, Router<any>>;
|
|
52
|
+
record: TRecord;
|
|
53
|
+
subscriptions: Filter<TRecord, SubscriptionProcedure<any>> & Filter<SimpleFlatten<PrefixedProcedures<TRecord>>, SubscriptionProcedure<any>>;
|
|
54
|
+
queries: Filter<TRecord, QueryProcedure<any>> & Filter<SimpleFlatten<PrefixedProcedures<TRecord>>, QueryProcedure<any>>;
|
|
55
|
+
mutations: Filter<TRecord, MutationProcedure<any>> & Filter<SimpleFlatten<PrefixedProcedures<TRecord>>, MutationProcedure<any>>;
|
|
34
56
|
}
|
|
35
|
-
export declare type
|
|
57
|
+
export declare type AnyRouterDef<TContext = any> = RouterDef<TContext, any, any, any>;
|
|
36
58
|
/**
|
|
37
59
|
* @internal
|
|
38
60
|
*/
|
|
39
|
-
export declare type inferHandlerInput<TProcedure extends Procedure<any>> = TProcedure extends Procedure<infer
|
|
61
|
+
export declare type inferHandlerInput<TProcedure extends Procedure<any>> = TProcedure extends Procedure<infer TDef> ? undefined extends TDef['_input_in'] ? unknown extends TDef['_input_in'] ? [(null | undefined)?] : [(TDef['_input_in'] | null | undefined)?] : [TDef['_input_in']] : [(undefined | null)?];
|
|
40
62
|
/**
|
|
41
63
|
* @internal
|
|
42
64
|
*/
|
|
43
|
-
declare type inferHandlerFn<TProcedures extends
|
|
65
|
+
declare type inferHandlerFn<TProcedures extends Record<string, Procedure<any>>> = <TProcedure extends TProcedures[TPath], TPath extends keyof TProcedures & string>(path: TPath, ...args: inferHandlerInput<TProcedure>) => inferProcedureOutput<TProcedure>;
|
|
44
66
|
/**
|
|
45
67
|
* This only exists b/c of interop mode
|
|
46
68
|
* @internal
|
|
47
69
|
*/
|
|
48
|
-
declare type RouterCaller<
|
|
70
|
+
declare type RouterCaller<TDef extends AnyRouterDef> = (ctx: TDef['_ctx']) => {
|
|
49
71
|
/**
|
|
50
72
|
* @deprecated
|
|
51
73
|
*/
|
|
52
|
-
query: inferHandlerFn<
|
|
74
|
+
query: inferHandlerFn<TDef['queries']>;
|
|
53
75
|
/**
|
|
54
76
|
* @deprecated
|
|
55
77
|
*/
|
|
56
|
-
mutation: inferHandlerFn<
|
|
78
|
+
mutation: inferHandlerFn<TDef['mutations']>;
|
|
57
79
|
/**
|
|
58
80
|
* @deprecated
|
|
59
81
|
*/
|
|
60
|
-
subscription: inferHandlerFn<
|
|
61
|
-
queries: TParams['queries'];
|
|
62
|
-
mutations: TParams['mutations'];
|
|
63
|
-
subscriptions: TParams['subscriptions'];
|
|
82
|
+
subscription: inferHandlerFn<TDef['subscriptions']>;
|
|
64
83
|
};
|
|
65
|
-
export interface Router<
|
|
66
|
-
_def:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
createCaller: RouterCaller<TParams>;
|
|
84
|
+
export interface Router<TDef extends AnyRouterDef> {
|
|
85
|
+
_def: RouterDef<TDef['_ctx'], TDef['_errorShape'], TDef['_meta'], TDef['record']>;
|
|
86
|
+
/** @deprecated **/
|
|
87
|
+
errorFormatter: TDef['errorFormatter'];
|
|
88
|
+
/** @deprecated **/
|
|
89
|
+
transformer: TDef['transformer'];
|
|
90
|
+
createCaller: RouterCaller<TDef>;
|
|
73
91
|
getErrorShape(opts: {
|
|
74
92
|
error: TRPCError;
|
|
75
93
|
type: ProcedureType | 'unknown';
|
|
76
94
|
path: string | undefined;
|
|
77
95
|
input: unknown;
|
|
78
|
-
ctx: undefined |
|
|
79
|
-
}):
|
|
96
|
+
ctx: undefined | TDef['_ctx'];
|
|
97
|
+
}): TDef['_errorShape'];
|
|
80
98
|
}
|
|
81
99
|
/**
|
|
82
100
|
* @internal
|
|
83
101
|
*/
|
|
84
|
-
export declare type
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
export declare type RouterDefaultOptions<TContext> = Pick<AnyRouterParams<TContext>, 'transformer' | 'errorFormatter'>;
|
|
102
|
+
export declare type RouterDefaultOptions<TContext> = Pick<AnyRouterDef<TContext>, 'transformer' | 'errorFormatter'>;
|
|
89
103
|
/**
|
|
90
104
|
* @internal
|
|
91
105
|
*/
|
|
92
|
-
declare type RouterBuildOptions<TContext> = Pick<
|
|
106
|
+
export declare type RouterBuildOptions<TContext> = Partial<Pick<AnyRouterDef<TContext>, 'procedures'>>;
|
|
93
107
|
export declare type AnyRouter = Router<any>;
|
|
94
108
|
/**
|
|
95
109
|
*
|
|
96
110
|
* @internal
|
|
97
111
|
*/
|
|
98
|
-
export declare function createRouterFactory<
|
|
99
|
-
_ctx: TSettings['ctx'];
|
|
100
|
-
_errorShape: TSettings['errorShape'];
|
|
101
|
-
_meta: TSettings['meta'];
|
|
102
|
-
queries: EnsureRecord<TProcedures["queries"]>;
|
|
103
|
-
mutations: EnsureRecord<TProcedures["mutations"]>;
|
|
104
|
-
subscriptions: EnsureRecord<TProcedures["subscriptions"]>;
|
|
105
|
-
errorFormatter: ErrorFormatter<TSettings['ctx'], TSettings['errorShape']>;
|
|
106
|
-
transformer: TSettings['transformer'];
|
|
107
|
-
}>;
|
|
108
|
-
declare type combineProcedureRecords<A extends Partial<AnyRouter>, B extends Partial<AnyRouter>> = {
|
|
109
|
-
queries: A['queries'] & B['queries'];
|
|
110
|
-
mutations: A['mutations'] & B['mutations'];
|
|
111
|
-
subscriptions: A['subscriptions'] & B['subscriptions'];
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* @internal
|
|
115
|
-
*/
|
|
116
|
-
export declare type mergeProcedureRecordsVariadic<Routers extends Partial<AnyRouter>[]> = Routers extends [] ? {
|
|
117
|
-
queries: {};
|
|
118
|
-
mutations: {};
|
|
119
|
-
subscriptions: {};
|
|
120
|
-
} : Routers extends [infer First, ...infer Rest] ? First extends Partial<AnyRouter> ? Rest extends Partial<AnyRouter>[] ? combineProcedureRecords<First, mergeProcedureRecordsVariadic<Rest>> : never : never : never;
|
|
112
|
+
export declare function createRouterFactory<TConfig extends RootConfig>(defaults?: RouterDefaultOptions<TConfig['ctx']>): <TProcRouterRecord extends ProcedureRouterRecord>(opts: TProcRouterRecord) => Router<RouterDef<TConfig["ctx"], TConfig["errorShape"], TConfig["meta"], TProcRouterRecord>> & TProcRouterRecord;
|
|
121
113
|
export {};
|
|
122
114
|
//# sourceMappingURL=router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/core/router.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAEL,cAAc,EAEf,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,cAAc,EAA2B,MAAM,QAAQ,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAsB,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAOhD,OAAO,
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/core/router.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAEL,cAAc,EAEf,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,cAAc,EAA2B,MAAM,QAAQ,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAsB,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAOhD,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,qBAAq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C;QACf,GAAG,EAAE,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;KAC/B,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;CACzB;AAED;;GAEG;AACH,oBAAY,oBAAoB,CAAC,QAAQ,IAAI,IAAI,CAC/C,YAAY,CAAC,QAAQ,CAAC,EACtB,aAAa,GAAG,gBAAgB,CACjC,CAAC;AAEF;;GAEG;AACH,oBAAY,kBAAkB,CAAC,QAAQ,IAAI,OAAO,CAChD,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC,CAC3C,CAAC;AAEF,oBAAY,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AAoBpC;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,SAAS,UAAU,EAC5D,QAAQ,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,kMA4JhD"}
|
package/dist/core/types.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { inferObservableValue } from '../observable';
|
|
2
|
-
import { inferAsyncReturnType } from '../types';
|
|
3
2
|
import { Procedure, ProcedureArgs } from './procedure';
|
|
4
|
-
import { AnyRouter,
|
|
5
|
-
export declare type
|
|
6
|
-
export declare type inferRouterContext<TRouter extends AnyRouter> =
|
|
7
|
-
export declare type inferRouterError<TRouter extends AnyRouter> =
|
|
8
|
-
export declare type inferRouterMeta<TRouter extends AnyRouter> =
|
|
3
|
+
import { AnyRouter, AnyRouterDef, Router } from './router';
|
|
4
|
+
export declare type inferRouterDef<TRouter extends AnyRouter> = TRouter extends Router<infer TParams> ? TParams extends AnyRouterDef<any> ? TParams : never : never;
|
|
5
|
+
export declare type inferRouterContext<TRouter extends AnyRouter> = inferRouterDef<TRouter>['_ctx'];
|
|
6
|
+
export declare type inferRouterError<TRouter extends AnyRouter> = inferRouterDef<TRouter>['_errorShape'];
|
|
7
|
+
export declare type inferRouterMeta<TRouter extends AnyRouter> = inferRouterDef<TRouter>['_meta'];
|
|
9
8
|
/**
|
|
10
9
|
* @public
|
|
11
10
|
*/
|
|
12
11
|
export declare type ProcedureType = 'query' | 'mutation' | 'subscription';
|
|
13
|
-
export declare type inferHandlerInput<TProcedure extends Procedure<any>> =
|
|
12
|
+
export declare type inferHandlerInput<TProcedure extends Procedure<any>> = ProcedureArgs<inferProcedureParams<TProcedure>>;
|
|
14
13
|
export declare type inferProcedureInput<TProcedure extends Procedure<any>> = inferHandlerInput<TProcedure>[0];
|
|
15
|
-
export declare type
|
|
16
|
-
export declare type
|
|
14
|
+
export declare type inferProcedureParams<TProcedure> = TProcedure extends Procedure<any> ? TProcedure['_def'] : never;
|
|
15
|
+
export declare type inferProcedureOutput<TProcedure> = inferProcedureParams<TProcedure>['_output_out'];
|
|
16
|
+
export declare type inferSubscriptionOutput<TRouter extends AnyRouter, TPath extends keyof TRouter['_def']['subscriptions'] & string> = inferObservableValue<inferProcedureOutput<TRouter['_def']['subscriptions'][TPath]>>;
|
|
17
17
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/core/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAE3D,oBAAY,cAAc,CAAC,OAAO,SAAS,SAAS,IAAI,OAAO,SAAS,MAAM,CAC5E,MAAM,OAAO,CACd,GACG,OAAO,SAAS,YAAY,CAAC,GAA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
|
2
|
+
import { CreateRootConfig, RootConfig } from '../core/internals/config';
|
|
3
|
+
import { MutationProcedure, QueryProcedure, SubscriptionProcedure } from '../core/procedure';
|
|
4
|
+
import { Router as NewRouter, RouterDef } from '../core/router';
|
|
3
5
|
import { AnyRouter as AnyOldRouter, Router as OldRouter } from '../deprecated/router';
|
|
4
6
|
import { TRPCErrorShape } from '../rpc';
|
|
5
|
-
import { CombinedDataTransformer } from '../transformer';
|
|
6
7
|
import { Procedure as OldProcedure } from './internals/procedure';
|
|
7
8
|
import { ProcedureRecord } from './router';
|
|
8
9
|
declare type AnyOldProcedure = OldProcedure<any, any, any, any, any, any, any, any>;
|
|
9
|
-
declare type
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
_input_in: TInput;
|
|
14
|
-
_input_out: TParsedInput;
|
|
15
|
-
_output_in: TOutput;
|
|
16
|
-
_output_out: TFinalInput;
|
|
17
|
-
}> : never;
|
|
18
|
-
export declare type MigrateProcedureRecord<T extends ProcedureRecord<any>> = {
|
|
19
|
-
[K in keyof T]: MigrateProcedure<T[K]>;
|
|
10
|
+
declare type convertProcedureParams<TConfig extends RootConfig, TProcedure extends AnyOldProcedure> = TProcedure extends OldProcedure<infer TInputContext, infer TContext, infer TMeta, infer TInput, infer TParsedInput, infer TOutput, infer _TParsedOutput, infer TFinalInput> ? ProcedureParams<TConfig, TInputContext, TContext, TInput, TParsedInput, TOutput, TFinalInput, TMeta> : never;
|
|
11
|
+
declare type MigrateProcedure<TConfig extends RootConfig, TProcedure extends AnyOldProcedure, TType extends ProcedureType> = TType extends 'query' ? QueryProcedure<convertProcedureParams<TConfig, TProcedure>> : TType extends 'mutation' ? MutationProcedure<convertProcedureParams<TConfig, TProcedure>> : TType extends 'subscription' ? SubscriptionProcedure<convertProcedureParams<TConfig, TProcedure>> : never;
|
|
12
|
+
export declare type MigrateProcedureRecord<TConfig extends RootConfig, T extends ProcedureRecord<any>, TType extends ProcedureType> = {
|
|
13
|
+
[K in keyof T]: MigrateProcedure<TConfig, T[K], TType>;
|
|
20
14
|
};
|
|
21
|
-
export declare type MigrateRouter<TInputContext, TContext, TMeta extends Record<string, any>, TQueries extends ProcedureRecord<TInputContext, TContext, any, any, any, any, any>, TMutations extends ProcedureRecord<TInputContext, TContext, any, any, any, any, any>, TSubscriptions extends ProcedureRecord<TInputContext, TContext, unknown, unknown, any, unknown, unknown>, TErrorShape extends TRPCErrorShape<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
errorFormatter: never;
|
|
26
|
-
mutations: MigrateProcedureRecord<TMutations>;
|
|
27
|
-
queries: MigrateProcedureRecord<TQueries>;
|
|
28
|
-
subscriptions: MigrateProcedureRecord<TSubscriptions>;
|
|
15
|
+
export declare type MigrateRouter<TInputContext extends Record<string, any>, TContext, TMeta extends Record<string, any>, TQueries extends ProcedureRecord<TInputContext, TContext, any, any, any, any, any>, TMutations extends ProcedureRecord<TInputContext, TContext, any, any, any, any, any>, TSubscriptions extends ProcedureRecord<TInputContext, TContext, unknown, unknown, any, unknown, unknown>, TErrorShape extends TRPCErrorShape<any>> = NewRouter<RouterDef<TInputContext, TErrorShape, TMeta, MigrateProcedureRecord<CreateRootConfig<{
|
|
16
|
+
ctx: TInputContext;
|
|
17
|
+
errorShape: TErrorShape;
|
|
18
|
+
meta: TMeta;
|
|
29
19
|
transformer: CombinedDataTransformer;
|
|
30
|
-
}
|
|
20
|
+
}>, TQueries, 'query'> & MigrateProcedureRecord<CreateRootConfig<{
|
|
21
|
+
ctx: TInputContext;
|
|
22
|
+
errorShape: TErrorShape;
|
|
23
|
+
meta: TMeta;
|
|
24
|
+
transformer: CombinedDataTransformer;
|
|
25
|
+
}>, TMutations, 'mutation'> & MigrateProcedureRecord<CreateRootConfig<{
|
|
26
|
+
ctx: TInputContext;
|
|
27
|
+
errorShape: TErrorShape;
|
|
28
|
+
meta: TMeta;
|
|
29
|
+
transformer: CombinedDataTransformer;
|
|
30
|
+
}>, TSubscriptions, 'subscription'>>>;
|
|
31
31
|
export declare type MigrateOldRouter<TRouter extends AnyOldRouter> = TRouter extends OldRouter<infer TInputContext, infer TContext, infer TMeta, infer TQueries, infer TMutations, infer TSubscriptions, infer TErrorShape> ? MigrateRouter<TInputContext, TContext, TMeta, TQueries, TMutations, TSubscriptions, TErrorShape> : never;
|
|
32
32
|
export declare function migrateRouter<TOldRouter extends AnyOldRouter>(oldRouter: TOldRouter): MigrateOldRouter<TOldRouter>;
|
|
33
33
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interop.d.ts","sourceRoot":"","sources":["../../src/deprecated/interop.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"interop.d.ts","sourceRoot":"","sources":["../../src/deprecated/interop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAQxE,OAAO,EACL,iBAAiB,EAEjB,cAAc,EACd,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,MAAM,IAAI,SAAS,EACnB,SAAS,EAEV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,SAAS,IAAI,YAAY,EACzB,MAAM,IAAI,SAAS,EACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,aAAK,eAAe,GAAG,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAE5E,aAAK,sBAAsB,CACzB,OAAO,SAAS,UAAU,EAC1B,UAAU,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,GACpB,gBAAgB,CAAC,UAAU,CAAC,CA+B9B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyRouter, ProcedureType,
|
|
1
|
+
import { AnyRouter, ProcedureType, inferRouterDef } from '../../core';
|
|
2
2
|
import { TRPCError } from '../../error/TRPCError';
|
|
3
3
|
import { BaseHandlerOptions } from '../../internals/types';
|
|
4
4
|
import { TRPCResponse } from '../../rpc';
|
|
@@ -20,8 +20,8 @@ export interface HTTPRequest {
|
|
|
20
20
|
* @internal
|
|
21
21
|
*/
|
|
22
22
|
export declare type ResponseMetaFn<TRouter extends AnyRouter> = (opts: {
|
|
23
|
-
data: TRPCResponse<unknown,
|
|
24
|
-
ctx?:
|
|
23
|
+
data: TRPCResponse<unknown, inferRouterDef<TRouter>['_error']>[];
|
|
24
|
+
ctx?: inferRouterDef<TRouter>['_ctx'];
|
|
25
25
|
/**
|
|
26
26
|
* The different tRPC paths requested
|
|
27
27
|
**/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/http/internals/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/http/internals/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,oBAAY,WAAW,GAAG,IAAI,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;AAElD,MAAM,WA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