Merge pull request #75 from kedniko/patch-1

Update 2.recommended.md
This commit is contained in:
Robert Soriano
2023-03-18 13:55:45 -07:00
committed by GitHub

View File

@@ -96,7 +96,7 @@ import { inferAsyncReturnType } from '@trpc/server'
* Creates context for an incoming request * Creates context for an incoming request
* @link https://trpc.io/docs/context * @link https://trpc.io/docs/context
*/ */
export const createContext = () => {} export const createContext = () => ({})
export type Context = inferAsyncReturnType<typeof createContext>; export type Context = inferAsyncReturnType<typeof createContext>;
``` ```