Update 2.recommended.md

This commit is contained in:
kedniko
2023-03-10 18:31:26 +01:00
committed by GitHub
parent 7a69573fb9
commit b506cd5f14

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>;
``` ```