Skip to content

Commit

Permalink
Update tsconfig.json, and remove a bad dep
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed Oct 26, 2023
1 parent 6fff438 commit 8c2bbe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/server/api/trpc.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/
import { initTRPC } from '@trpc/server';
import { type CreateNextContextOptions } from '@trpc/server/adapters/next';
import { type FetchCreateContextFnOptions } from '@trpc/server/dist/adapters/fetch';
import superjson from 'superjson';
import { ZodError } from 'zod';

Expand All @@ -27,7 +26,7 @@ export const createTRPCNodeContext = ({ /*req, res*/ }: CreateNextContextOptions
return {};
};

export const createTRPCEdgeContext = ({ /*req, resHeaders*/ }: FetchCreateContextFnOptions) => {
export const createTRPCEdgeContext = ({ /*req, resHeaders*/ }: { req: Request; resHeaders: Headers; }) => {
// const user = { name: req.headers.get('username') ?? 'anonymous' };
// return { req, resHeaders };
return {};
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
Expand Down

0 comments on commit 8c2bbe2

Please sign in to comment.