Skip to content
tRPC

Partners

Interface: TRPCProcedureOptions<TContext>

On this page

Defined in: packages/client/src/internals/types.ts:99

The options of a call made with the client, such as client.post.byId.query(input, opts). TContext is what the client's links read, when it was created with router: routerType<AppRouter>().

Type Parameters

Type ParameterDefault type
TContext extends objectRecord<string, unknown>

Properties

context?

optional context: TContext

Defined in: packages/client/src/internals/types.ts:106

Context for the links, such as a flag a splitLink reads.

See

https://trpc.io/docs/client/links#managing-context


signal?

optional signal: AbortSignal

Defined in: packages/client/src/internals/types.ts:112

Aborts the call. With httpBatchLink, the request is only aborted once every call in its batch is, so an aborted call can still get a result.

See

https://trpc.io/docs/client/vanilla/aborting-procedure-calls