-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
✅ accepted-PRs-welcomeFeature proposal is accepted and ready to work onFeature proposal is accepted and ready to work on
Description
Describe the feature you'd like to request
Currently TRPC Proxy Client context is of type ClientContext and is not an extendable interface like OperationContext.
Describe the solution you'd like to see
Can TRPC Proxy client's context follow OperationContext? Or make it an interface so we can extend on it.
Describe alternate solutions
I am not sure why Proxy Client did not use OperationContext but the terminating link is using it. Would be good if both types are synced.
Additional information
type ClientContext = Record<string, unknown>;
/**
* @internal
*/
export interface ProcedureOptions {
/**
* Client-side context
*/
context?: ClientContext;
signal?: AbortSignal;
}👨👧👦 Contributing
- 🙋♂️ Yes, I'd be down to file a PR implementing this feature!
Not-Jayden
Metadata
Metadata
Assignees
Labels
✅ accepted-PRs-welcomeFeature proposal is accepted and ready to work onFeature proposal is accepted and ready to work on