Skip to content
tRPC

Partners

Interface: TRPCProcedureOptions

On this page

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

The options of a call made with the client, such as client.post.byId.query(input, opts).

Properties

context?

optional context: ClientContext

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

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:109

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