@trpc/server 11.0.0-alpha-tmp-issues-5557-types-node-wut.322 → 11.0.0-alpha-tmp-issues-4129-lazy-routers.305

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.
@@ -59,7 +59,7 @@ function getWSConnectionHandler(opts) {
59
59
  try {
60
60
  await ctxPromise; // asserts context has been set
61
61
  const result = await router.callProcedure({
62
- procedures: router$1._def.procedures,
62
+ _def: router$1._def,
63
63
  path,
64
64
  getRawInput: async ()=>input,
65
65
  ctx,
@@ -57,7 +57,7 @@ function getWSConnectionHandler(opts) {
57
57
  try {
58
58
  await ctxPromise; // asserts context has been set
59
59
  const result = await callProcedure({
60
- procedures: router._def.procedures,
60
+ _def: router._def,
61
61
  path,
62
62
  getRawInput: async ()=>input,
63
63
  ctx,
@@ -1,12 +1,12 @@
1
1
  {
2
- "bundleSize": 92465,
3
- "bundleOrigSize": 147876,
4
- "bundleReduction": 37.47,
2
+ "bundleSize": 94943,
3
+ "bundleOrigSize": 150577,
4
+ "bundleReduction": 36.95,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/adapters/ws.ts",
8
- "size": 10170,
9
- "origSize": 9668,
8
+ "size": 10153,
9
+ "origSize": 9651,
10
10
  "renderedExports": [
11
11
  "getWSConnectionHandler",
12
12
  "applyWSSHandler"
@@ -15,26 +15,27 @@
15
15
  "dependents": [
16
16
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
17
17
  ],
18
- "percent": 11,
18
+ "percent": 10.69,
19
19
  "reduction": 0
20
20
  },
21
21
  {
22
22
  "id": "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
23
- "size": 9477,
24
- "origSize": 11975,
23
+ "size": 9457,
24
+ "origSize": 11953,
25
25
  "renderedExports": [
26
26
  "resolveHTTPResponse"
27
27
  ],
28
28
  "removedExports": [],
29
29
  "dependents": [],
30
- "percent": 10.25,
31
- "reduction": 20.86
30
+ "percent": 9.96,
31
+ "reduction": 20.88
32
32
  },
33
33
  {
34
34
  "id": "/src/unstable-core-do-not-import/router.ts",
35
- "size": 6069,
36
- "origSize": 9881,
35
+ "size": 8477,
36
+ "origSize": 12504,
37
37
  "renderedExports": [
38
+ "lazy",
38
39
  "createRouterFactory",
39
40
  "callProcedure",
40
41
  "createCallerFactory",
@@ -46,13 +47,13 @@
46
47
  "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
47
48
  "/src/unstable-core-do-not-import/initTRPC.ts"
48
49
  ],
49
- "percent": 6.56,
50
- "reduction": 38.58
50
+ "percent": 8.93,
51
+ "reduction": 32.21
51
52
  },
52
53
  {
53
54
  "id": "/src/unstable-core-do-not-import/procedureBuilder.ts",
54
- "size": 5706,
55
- "origSize": 13774,
55
+ "size": 5738,
56
+ "origSize": 13804,
56
57
  "renderedExports": [
57
58
  "unsetMarker",
58
59
  "createBuilder"
@@ -62,8 +63,8 @@
62
63
  "/src/unstable-core-do-not-import.ts",
63
64
  "/src/unstable-core-do-not-import/initTRPC.ts"
64
65
  ],
65
- "percent": 6.17,
66
- "reduction": 58.57
66
+ "percent": 6.04,
67
+ "reduction": 58.43
67
68
  },
68
69
  {
69
70
  "id": "/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts",
@@ -78,7 +79,7 @@
78
79
  "dependents": [
79
80
  "/src/adapters/node-http/content-type/form-data/index.ts"
80
81
  ],
81
- "percent": 5.38,
82
+ "percent": 5.24,
82
83
  "reduction": 38
83
84
  },
84
85
  {
@@ -92,7 +93,7 @@
92
93
  ],
93
94
  "removedExports": [],
94
95
  "dependents": [],
95
- "percent": 4.78,
96
+ "percent": 4.66,
96
97
  "reduction": 32.71
97
98
  },
98
99
  {
@@ -106,7 +107,7 @@
106
107
  "dependents": [
107
108
  "/src/adapters/node-http/index.ts"
108
109
  ],
109
- "percent": 4.25,
110
+ "percent": 4.14,
110
111
  "reduction": 13.56
111
112
  },
112
113
  {
@@ -120,7 +121,7 @@
120
121
  "dependents": [
121
122
  "/src/adapters/fetch/index.ts"
122
123
  ],
123
- "percent": 3.75,
124
+ "percent": 3.65,
124
125
  "reduction": 9.9
125
126
  },
126
127
  {
@@ -139,7 +140,7 @@
139
140
  "dependents": [
140
141
  "/src/adapters/aws-lambda/index.ts"
141
142
  ],
142
- "percent": 3.58,
143
+ "percent": 3.48,
143
144
  "reduction": 34.98
144
145
  },
145
146
  {
@@ -156,9 +157,23 @@
156
157
  "/src/observable/index.ts",
157
158
  "/src/observable/operators.ts"
158
159
  ],
159
- "percent": 3.38,
160
+ "percent": 3.3,
160
161
  "reduction": 0.67
161
162
  },
163
+ {
164
+ "id": "/src/unstable-core-do-not-import/initTRPC.ts",
165
+ "size": 2801,
166
+ "origSize": 4689,
167
+ "renderedExports": [
168
+ "initTRPC"
169
+ ],
170
+ "removedExports": [],
171
+ "dependents": [
172
+ "/src/unstable-core-do-not-import.ts"
173
+ ],
174
+ "percent": 2.95,
175
+ "reduction": 40.26
176
+ },
162
177
  {
163
178
  "id": "/src/observable/operators.ts",
164
179
  "size": 2756,
@@ -172,7 +187,7 @@
172
187
  "dependents": [
173
188
  "/src/observable/index.ts"
174
189
  ],
175
- "percent": 2.98,
190
+ "percent": 2.9,
176
191
  "reduction": 0
177
192
  },
178
193
  {
@@ -192,23 +207,9 @@
192
207
  "/src/unstable-core-do-not-import/router.ts",
193
208
  "/src/unstable-core-do-not-import/initTRPC.ts"
194
209
  ],
195
- "percent": 2.97,
210
+ "percent": 2.89,
196
211
  "reduction": 45.94
197
212
  },
198
- {
199
- "id": "/src/unstable-core-do-not-import/initTRPC.ts",
200
- "size": 2726,
201
- "origSize": 4602,
202
- "renderedExports": [
203
- "initTRPC"
204
- ],
205
- "removedExports": [],
206
- "dependents": [
207
- "/src/unstable-core-do-not-import.ts"
208
- ],
209
- "percent": 2.95,
210
- "reduction": 40.76
211
- },
212
213
  {
213
214
  "id": "/src/unstable-core-do-not-import/middleware.ts",
214
215
  "size": 2627,
@@ -226,7 +227,7 @@
226
227
  "/src/unstable-core-do-not-import/initTRPC.ts",
227
228
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
228
229
  ],
229
- "percent": 2.84,
230
+ "percent": 2.77,
230
231
  "reduction": 55.5
231
232
  },
232
233
  {
@@ -241,7 +242,7 @@
241
242
  "/src/adapters/fastify/index.ts",
242
243
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
243
244
  ],
244
- "percent": 2.68,
245
+ "percent": 2.61,
245
246
  "reduction": 36.53
246
247
  },
247
248
  {
@@ -253,7 +254,7 @@
253
254
  ],
254
255
  "removedExports": [],
255
256
  "dependents": [],
256
- "percent": 2.64,
257
+ "percent": 2.58,
257
258
  "reduction": 32.42
258
259
  },
259
260
  {
@@ -274,7 +275,7 @@
274
275
  "/src/unstable-core-do-not-import/middleware.ts",
275
276
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
276
277
  ],
277
- "percent": 1.87,
278
+ "percent": 1.83,
278
279
  "reduction": 19.47
279
280
  },
280
281
  {
@@ -288,7 +289,7 @@
288
289
  "dependents": [
289
290
  "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
290
291
  ],
291
- "percent": 1.78,
292
+ "percent": 1.73,
292
293
  "reduction": 34.79
293
294
  },
294
295
  {
@@ -300,7 +301,7 @@
300
301
  ],
301
302
  "removedExports": [],
302
303
  "dependents": [],
303
- "percent": 1.73,
304
+ "percent": 1.69,
304
305
  "reduction": 29.12
305
306
  },
306
307
  {
@@ -314,7 +315,7 @@
314
315
  "dependents": [
315
316
  "/src/adapters/node-http/content-type/json/index.ts"
316
317
  ],
317
- "percent": 1.72,
318
+ "percent": 1.67,
318
319
  "reduction": 0.19
319
320
  },
320
321
  {
@@ -326,7 +327,7 @@
326
327
  ],
327
328
  "removedExports": [],
328
329
  "dependents": [],
329
- "percent": 1.71,
330
+ "percent": 1.66,
330
331
  "reduction": 21.04
331
332
  },
332
333
  {
@@ -339,7 +340,7 @@
339
340
  ],
340
341
  "removedExports": [],
341
342
  "dependents": [],
342
- "percent": 1.65,
343
+ "percent": 1.61,
343
344
  "reduction": 27.6
344
345
  },
345
346
  {
@@ -356,7 +357,7 @@
356
357
  "/src/unstable-core-do-not-import/router.ts",
357
358
  "/src/unstable-core-do-not-import/initTRPC.ts"
358
359
  ],
359
- "percent": 1.63,
360
+ "percent": 1.59,
360
361
  "reduction": 5.58
361
362
  },
362
363
  {
@@ -370,7 +371,7 @@
370
371
  "dependents": [
371
372
  "/src/adapters/fastify/index.ts"
372
373
  ],
373
- "percent": 1.61,
374
+ "percent": 1.57,
374
375
  "reduction": 34.33
375
376
  },
376
377
  {
@@ -384,7 +385,7 @@
384
385
  "dependents": [
385
386
  "/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts"
386
387
  ],
387
- "percent": 1.51,
388
+ "percent": 1.47,
388
389
  "reduction": 0
389
390
  },
390
391
  {
@@ -400,7 +401,7 @@
400
401
  "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
401
402
  "/src/unstable-core-do-not-import/error/getErrorShape.ts"
402
403
  ],
403
- "percent": 1.37,
404
+ "percent": 1.33,
404
405
  "reduction": 22.76
405
406
  },
406
407
  {
@@ -415,7 +416,7 @@
415
416
  "/src/unstable-core-do-not-import.ts",
416
417
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
417
418
  ],
418
- "percent": 1.07,
419
+ "percent": 1.04,
419
420
  "reduction": 56.22
420
421
  },
421
422
  {
@@ -430,14 +431,14 @@
430
431
  "removedExports": [],
431
432
  "dependents": [
432
433
  "/src/unstable-core-do-not-import.ts",
434
+ "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
433
435
  "/src/unstable-core-do-not-import/error/TRPCError.ts",
434
436
  "/src/unstable-core-do-not-import/router.ts",
435
437
  "/src/unstable-core-do-not-import/transformer.ts",
436
438
  "/src/unstable-core-do-not-import/middleware.ts",
437
- "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
438
439
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
439
440
  ],
440
- "percent": 0.88,
441
+ "percent": 0.86,
441
442
  "reduction": 19.78
442
443
  },
443
444
  {
@@ -457,7 +458,7 @@
457
458
  "/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts",
458
459
  "/src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts"
459
460
  ],
460
- "percent": 0.79,
461
+ "percent": 0.76,
461
462
  "reduction": 67.52
462
463
  },
463
464
  {
@@ -471,7 +472,7 @@
471
472
  "dependents": [
472
473
  "/src/adapters/node-http/content-type/form-data/index.ts"
473
474
  ],
474
- "percent": 0.76,
475
+ "percent": 0.74,
475
476
  "reduction": 71.21
476
477
  },
477
478
  {
@@ -483,7 +484,7 @@
483
484
  ],
484
485
  "removedExports": [],
485
486
  "dependents": [],
486
- "percent": 0.72,
487
+ "percent": 0.7,
487
488
  "reduction": 0.6
488
489
  },
489
490
  {
@@ -498,7 +499,7 @@
498
499
  "/src/unstable-core-do-not-import.ts",
499
500
  "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
500
501
  ],
501
- "percent": 0.68,
502
+ "percent": 0.66,
502
503
  "reduction": 43.49
503
504
  },
504
505
  {
@@ -511,7 +512,7 @@
511
512
  ],
512
513
  "removedExports": [],
513
514
  "dependents": [],
514
- "percent": 0.63,
515
+ "percent": 0.61,
515
516
  "reduction": 65.23
516
517
  },
517
518
  {
@@ -526,7 +527,7 @@
526
527
  "/src/unstable-core-do-not-import.ts",
527
528
  "/src/unstable-core-do-not-import/initTRPC.ts"
528
529
  ],
529
- "percent": 0.37,
530
+ "percent": 0.36,
530
531
  "reduction": 83.97
531
532
  },
532
533
  {
@@ -538,7 +539,7 @@
538
539
  ],
539
540
  "removedExports": [],
540
541
  "dependents": [],
541
- "percent": 0.37,
542
+ "percent": 0.36,
542
543
  "reduction": 71.37
543
544
  },
544
545
  {
@@ -552,7 +553,7 @@
552
553
  "dependents": [
553
554
  "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
554
555
  ],
555
- "percent": 0.32,
556
+ "percent": 0.31,
556
557
  "reduction": 35.11
557
558
  },
558
559
  {
@@ -566,7 +567,7 @@
566
567
  "dependents": [
567
568
  "/src/unstable-core-do-not-import.ts"
568
569
  ],
569
- "percent": 0.24,
570
+ "percent": 0.23,
570
571
  "reduction": 94.55
571
572
  },
572
573
  {
@@ -593,7 +594,7 @@
593
594
  "/src/adapters/node-http/content-type/form-data/index.ts",
594
595
  "/src/adapters/node-http/content-type/json/index.ts"
595
596
  ],
596
- "percent": 0.13,
597
+ "percent": 0.12,
597
598
  "reduction": 86.68
598
599
  },
599
600
  {
@@ -624,7 +625,7 @@
624
625
  "/src/unstable-core-do-not-import/router.ts",
625
626
  "/src/unstable-core-do-not-import/initTRPC.ts"
626
627
  ],
627
- "percent": 0.07,
628
+ "percent": 0.06,
628
629
  "reduction": 93.8
629
630
  },
630
631
  {
@@ -638,9 +639,9 @@
638
639
  "reduction": 100
639
640
  },
640
641
  {
641
- "id": "/src/index.ts",
642
+ "id": "/src/rpc.ts",
642
643
  "size": 0,
643
- "origSize": 32,
644
+ "origSize": 36,
644
645
  "renderedExports": [],
645
646
  "removedExports": [],
646
647
  "dependents": [],
@@ -648,9 +649,9 @@
648
649
  "reduction": 100
649
650
  },
650
651
  {
651
- "id": "/src/rpc.ts",
652
+ "id": "/src/index.ts",
652
653
  "size": 0,
653
- "origSize": 36,
654
+ "origSize": 32,
654
655
  "renderedExports": [],
655
656
  "removedExports": [],
656
657
  "dependents": [],
@@ -690,9 +691,9 @@
690
691
  "reduction": 100
691
692
  },
692
693
  {
693
- "id": "/src/adapters/fetch/index.ts",
694
+ "id": "/src/adapters/fastify/index.ts",
694
695
  "size": 0,
695
- "origSize": 64,
696
+ "origSize": 78,
696
697
  "renderedExports": [],
697
698
  "removedExports": [],
698
699
  "dependents": [],
@@ -700,9 +701,9 @@
700
701
  "reduction": 100
701
702
  },
702
703
  {
703
- "id": "/src/adapters/fastify/index.ts",
704
+ "id": "/src/adapters/fetch/index.ts",
704
705
  "size": 0,
705
- "origSize": 78,
706
+ "origSize": 64,
706
707
  "renderedExports": [],
707
708
  "removedExports": [],
708
709
  "dependents": [],
@@ -142,7 +142,7 @@ async function resolveHTTPResponse(opts) {
142
142
  const input = inputs[index];
143
143
  try {
144
144
  const data = await router.callProcedure({
145
- procedures: opts.router._def.procedures,
145
+ _def: router$1._def,
146
146
  path,
147
147
  getRawInput: async ()=>input,
148
148
  ctx,
@@ -140,7 +140,7 @@ async function resolveHTTPResponse(opts) {
140
140
  const input = inputs[index];
141
141
  try {
142
142
  const data = await callProcedure({
143
- procedures: opts.router._def.procedures,
143
+ _def: router._def,
144
144
  path,
145
145
  getRawInput: async ()=>input,
146
146
  ctx,
@@ -1 +1 @@
1
- {"version":3,"file":"initTRPC.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/initTRPC.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAGL,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAErD,KAAK,wBAAwB,CAAC,KAAK,IAAI,KAAK,SAAS,cAAc,CACjE,GAAG,EACH,MAAM,MAAM,CACb,GACG,MAAM,GACN,iBAAiB,CAAC;AACtB,UAAU,oBAAoB,CAAC,QAAQ,SAAS,MAAM,EAAE,KAAK,SAAS,MAAM,CAC1E,SAAQ,OAAO,CACb,IAAI,CACF,UAAU,CAAC;IACT,GAAG,EAAE,QAAQ,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,UAAU,EAAE,GAAG,CAAC;IAChB,WAAW,EAAE,GAAG,CAAC;CAClB,CAAC,EACF,QAAQ,GAAG,aAAa,CACzB,CACF;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BAC3C,SAAS,SAAS,QAAQ,CAAC,aAAa,CAAC,GAAG,KAAK,GAAG,IAAI;;;QAwDrE;;;WAGG;;QAEH;;;WAGG;;iBArEE,QAAQ;kBACP,KAAK;wBACC,SAAS,SAAS,QAAQ,CAAC,gBAAgB,CAAC,GACpD,iBAAiB,GACjB,yBAAyB,QAAQ,CAAC,gBAAgB,CAAC,CAAC;yBAC3C,SAAS,SAAS,QAAQ,CAAC,aAAa,CAAC,GAAG,KAAK,GAAG,IAAI;;iBALhE,QAAQ;kBACP,KAAK;wBACC,SAAS,SAAS,QAAQ,CAAC,gBAAgB,CAAC,GACpD,iBAAiB,GACjB,yBAAyB,QAAQ,CAAC,gBAAgB,CAAC,CAAC;yBAC3C,SAAS,SAAS,QAAQ,CAAC,aAAa,CAAC,GAAG,KAAK,GAAG,IAAI;;;CAoE1E;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,6BAAoB,CAAC"}
@@ -27,7 +27,8 @@ class TRPCBuilder {
27
27
  */ create(opts) {
28
28
  const config = {
29
29
  transformer: transformer.getDataTransformer(opts?.transformer ?? transformer.defaultTransformer),
30
- isDev: opts?.isDev ?? globalThis.process?.env.NODE_ENV !== 'production',
30
+ isDev: opts?.isDev ?? // eslint-disable-next-line @typescript-eslint/dot-notation
31
+ globalThis.process?.env['NODE_ENV'] !== 'production',
31
32
  allowOutsideOfServer: opts?.allowOutsideOfServer ?? false,
32
33
  errorFormatter: opts?.errorFormatter ?? formatter.defaultFormatter,
33
34
  isServer: opts?.isServer ?? rootConfig.isServerDefault,
@@ -25,7 +25,8 @@ class TRPCBuilder {
25
25
  */ create(opts) {
26
26
  const config = {
27
27
  transformer: getDataTransformer(opts?.transformer ?? defaultTransformer),
28
- isDev: opts?.isDev ?? globalThis.process?.env.NODE_ENV !== 'production',
28
+ isDev: opts?.isDev ?? // eslint-disable-next-line @typescript-eslint/dot-notation
29
+ globalThis.process?.env['NODE_ENV'] !== 'production',
29
30
  allowOutsideOfServer: opts?.allowOutsideOfServer ?? false,
30
31
  errorFormatter: opts?.errorFormatter ?? defaultFormatter,
31
32
  isServer: opts?.isServer ?? isServerDefault,
@@ -171,6 +171,7 @@ function createProcedureCaller(_def) {
171
171
  return result.data;
172
172
  }
173
173
  procedure._def = _def;
174
+ procedure.procedure = true;
174
175
  // FIXME typecast shouldn't be needed - fixittt
175
176
  return procedure;
176
177
  }
@@ -169,6 +169,7 @@ function createProcedureCaller(_def) {
169
169
  return result.data;
170
170
  }
171
171
  procedure._def = _def;
172
+ procedure.procedure = true;
172
173
  // FIXME typecast shouldn't be needed - fixittt
173
174
  return procedure;
174
175
  }
@@ -24,13 +24,18 @@ export type RouterCaller<TRoot extends AnyRootTypes, TRecord extends RouterRecor
24
24
  * e.g. wrapped in `React.cache` to avoid unnecessary computations
25
25
  */
26
26
  ctx: TRoot['ctx'] | (() => MaybePromise<TRoot['ctx']>)) => DecorateRouterRecord<TRecord>;
27
+ type LazyLoader<TAny> = {
28
+ load: () => Promise<void>;
29
+ ref: Lazy<TAny>;
30
+ };
27
31
  export interface Router<TRoot extends AnyRootTypes, TRecord extends RouterRecord> {
28
32
  _def: {
29
33
  _config: RootConfig<TRoot>;
30
34
  router: true;
31
35
  procedure?: never;
32
- procedures: TRecord;
36
+ procedures: Record<string, AnyProcedure>;
33
37
  record: TRecord;
38
+ lazy: Record<string, LazyLoader<AnyRouter>>;
34
39
  };
35
40
  /**
36
41
  * @deprecated use `t.createCallerFactory(router)` instead
@@ -44,11 +49,16 @@ export type inferRouterRootTypes<TRouter extends AnyRouter> = TRouter['_def']['_
44
49
  export type inferRouterContext<TRouter extends AnyRouter> = inferRouterRootTypes<TRouter>['ctx'];
45
50
  export type inferRouterError<TRouter extends AnyRouter> = inferRouterRootTypes<TRouter>['errorShape'];
46
51
  export type inferRouterMeta<TRouter extends AnyRouter> = inferRouterRootTypes<TRouter>['meta'];
52
+ declare const lazySymbol: unique symbol;
53
+ export type Lazy<TAny> = (() => Promise<TAny>) & {
54
+ [lazySymbol]: true;
55
+ };
47
56
  export type CreateRouterOptions = {
48
- [key: string]: AnyProcedure | AnyRouter | CreateRouterOptions;
57
+ [key: string]: AnyProcedure | AnyRouter | CreateRouterOptions | Lazy<AnyRouter>;
49
58
  };
59
+ export declare function lazy<TAny>(getRouter: () => Promise<TAny>): Lazy<TAny>;
50
60
  export type DecorateCreateRouterOptions<TRouterOptions extends CreateRouterOptions> = {
51
- [K in keyof TRouterOptions]: TRouterOptions[K] extends infer $Value ? $Value extends AnyProcedure ? $Value : $Value extends Router<any, infer TRecord> ? TRecord : $Value extends CreateRouterOptions ? DecorateCreateRouterOptions<$Value> : never : never;
61
+ [K in keyof TRouterOptions]: TRouterOptions[K] extends infer $Value ? $Value extends AnyProcedure ? $Value : $Value extends Router<any, infer TRecord> ? TRecord : $Value extends CreateRouterOptions ? DecorateCreateRouterOptions<$Value> : $Value extends Lazy<infer $Lazy> ? $Lazy extends Router<any, infer TRecord> ? TRecord : never : never : never;
52
62
  };
53
63
  /**
54
64
  * @internal
@@ -61,7 +71,7 @@ export declare function createRouterFactory<TRoot extends AnyRootTypes>(config:
61
71
  * @internal
62
72
  */
63
73
  export declare function callProcedure(opts: ProcedureCallOptions & {
64
- procedures: RouterRecord;
74
+ _def: AnyRouter['_def'];
65
75
  allowMethodOverride?: boolean;
66
76
  }): Promise<unknown>;
67
77
  export declare function createCallerFactory<TRoot extends AnyRootTypes>(): <TRecord extends RouterRecord>(router: Router<TRoot, TRecord>) => RouterCaller<TRoot, TRecord>;
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,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