From f86ebcd6d642bf64599326c4ab92dbf0ada2493d Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Sun, 20 Aug 2023 21:48:39 -0700 Subject: [PATCH] docs: add handler param description --- src/index.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/index.ts b/src/index.ts index 4d5cafc..91af02c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -39,9 +39,25 @@ export interface OnErrorPayload { export type OnErrorFn = (opts: OnErrorPayload) => void export interface ResolveHTTPRequestOptions { + /** + * The tRPC router to use. + * @see https://trpc.io/docs/router + */ router: TRouter + /** + * An async function that returns the tRPC context. + * @see https://trpc.io/docs/context + */ createContext?: CreateContextFn + /** + * A function that returns the response meta. + * @see https://trpc.io/docs/caching#using-responsemeta-to-cache-responses + */ responseMeta?: ResponseMetaFn + /** + * A function that is called when an error occurs. + * @see https://trpc.io/docs/error-handling#handling-errors + */ onError?: OnErrorFn batching?: { enabled: boolean