mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 20:19:33 +01:00
Example: Added a basic example with a product call
This commit is contained in:
9
examples/basic-example/server/trpc/context.ts
Normal file
9
examples/basic-example/server/trpc/context.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { inferAsyncReturnType } from '@trpc/server'
|
||||
|
||||
/**
|
||||
* Creates context for an incoming request
|
||||
* @link https://trpc.io/docs/context
|
||||
*/
|
||||
export const createContext = () => ({})
|
||||
|
||||
export type Context = inferAsyncReturnType<typeof createContext>
|
||||
Reference in New Issue
Block a user