Skip to content

Commit

Permalink
Merge pull request #6 from ceopaludetto/feat/add-support-to-res-headers
Browse files Browse the repository at this point in the history
Add resHeaders support
  • Loading branch information
cah4a authored Jul 1, 2024
2 parents a74fa6a + 930dd0b commit 7219870
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 7219870

Please sign in to comment.