Example: Added a basic example with a product call

This commit is contained in:
Ryan Gannon
2023-06-13 15:00:38 +01:00
parent ad85a78350
commit 3fc261d5e7
15 changed files with 343 additions and 0 deletions

View 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>