Skip to content
tRPC

Partners

Type Alias: TRPCOptionsProxy<TRouter, TFeatureFlags>

On this page

TRPCOptionsProxy<TRouter, TFeatureFlags>: DecoratedRouterRecord<TRouter["_def"]["_config"]["$types"], TRouter["_def"]["record"], TFeatureFlags> & DecorateRouterKeyable<TFeatureFlags>

Defined in: tanstack-react-query/src/internals/createOptionsProxy.ts:321

The object returned by useTRPC() and createTRPCOptionsProxy. It mirrors your router and has query, mutation and subscription option helpers on each procedure.

Type Parameters

Type ParameterDefault type
TRouter extends AnyTRPCRouter-
TFeatureFlags extends FeatureFlagsDefaultFeatureFlags

See

https://trpc.io/docs/client/tanstack-react-query/usage