Skip to content
tRPC

Partners

Type Alias: inferTRPCClientTypes<TInferrable>

On this page

inferTRPCClientTypes<TInferrable>: TInferrable extends AnyTRPCClientTypes ? PickTypes<TInferrable> : TInferrable extends RootConfigLike ? PickTypes<TInferrable["$types"]> : TInferrable extends InitLike ? PickTypes<TInferrable["_config"]["$types"]> : TInferrable extends RouterLike ? PickTypes<TInferrable["_def"]["_config"]["$types"]> : never

Defined in: packages/server/src/unstable-core-do-not-import/clientish/inferrable.ts:47

The root types a client needs, read from a router, a root object or a root config.

Type Parameters

Type Parameter
TInferrable extends InferrableClientTypes