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