Interface: TRPCRouterCallerFactory()<TRoot>
On this page
Defined in: packages/server/src/unstable-core-do-not-import/router.ts:512
The type of t.createCallerFactory(): takes a router and returns its
createCaller.
See
https://trpc.io/docs/server/server-side-calls#create-caller
Type Parameters
| Type Parameter |
|---|
TRoot extends AnyTRPCRootTypes |
TRPCRouterCallerFactory<
TRecord>(router):RouterCaller<TRoot,TRecord>
Defined in: packages/server/src/unstable-core-do-not-import/router.ts:513
The type of t.createCallerFactory(): takes a router and returns its
createCaller.
Type Parameters
| Type Parameter |
|---|
TRecord extends TRPCRouterRecord |
Parameters
| Parameter | Type |
|---|---|
router | Pick<Router<TRoot, TRecord>, "_def"> |
Returns
RouterCaller<TRoot, TRecord>