Wasnt trpc 11 supported? #115
-
I Previously asked about support for trpc 11, however it doesnt seem to work since this is deprecated |
Beta Was this translation helpful? Give feedback.
Answered by
icflorescu
Feb 29, 2024
Replies: 1 comment
-
Some of the types in the examples were indeed deprecated, however this doesn't mean tRPC v11 is not supported. I have updated the examples - you can use these instead: import type { RequestEvent } from '@sveltejs/kit';
export async function createContext(event: RequestEvent) {
return {
event // 👈 `event` is now available in your context
};
}
export type Context = Awaited<ReturnType<typeof createContext>>; Please note that tRPC v11 is still in beta. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
icflorescu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some of the types in the examples were indeed deprecated, however this doesn't mean tRPC v11 is not supported.
Please make sure you understand basic concepts before attempting to use the tRPC ecosystem.
I have updated the examples - you can use these instead:
Please note that tRPC v11 is still in beta.