Skip to content
tRPC

Partners

Type Alias: TRPCMutationKey<TPrefixEnabled>

On this page

TRPCMutationKey<TPrefixEnabled>: TPrefixEnabled extends true ? TRPCMutationKeyWithPrefix : TRPCMutationKeyWithoutPrefix

Defined in: types.ts:192

A tRPC mutation key, with a prefix if TPrefixEnabled is true.

Type Parameters

Type ParameterDefault type
TPrefixEnabled extends booleanfalse

See

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