Skip to content

Commit

Permalink
add resHeaders support
Browse files Browse the repository at this point in the history
  • Loading branch information
ceopaludetto committed Jun 30, 2024
1 parent a74fa6a commit 930dd0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/createBunHttpHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { Server } from "bun";
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
import type { AnyRouter, inferRouterContext } from "@trpc/server";
import type { HTTPBaseHandlerOptions } from "@trpc/server/http";
import type { FetchCreateContextFnOptions } from '@trpc/server/adapters/fetch'

export type CreateBunContextOptions = { req: Request };
export type CreateBunContextOptions = FetchCreateContextFnOptions

export type BunHttpHandlerOptions<TRouter extends AnyRouter> =
HTTPBaseHandlerOptions<TRouter, Request> & {
Expand Down

0 comments on commit 930dd0b

Please sign in to comment.