Skip to content

how to define backend context type #2674

Answered by sachinraja
capaj asked this question in Q&A
Discussion options

You must be logged in to vote

See https://trpc.io/docs/server/context for the new way of declaring context:

const t = initTRPC.context<MyTRPCContext>().create()

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@capaj
Comment options

Answer selected by capaj
Comment options

You must be logged in to vote
1 reply
@Vap0r1ze
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants