Skip to content

Commit 0e82f25

Browse files
committed
fix: update TypeScript module setting and enhance type inference in TRPC client to fix worflow issue
1 parent a16070b commit 0e82f25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/trpc/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import { type AppRouter } from "./router";
55

66
const url = "http://localhost:3000/api/trpc";
77

8-
export const clientTrpc = createTrpcQueryClient<AppRouter>({
8+
export const clientTrpc: ReturnType<typeof createTrpcQueryClient<AppRouter>> = createTrpcQueryClient<AppRouter>({
99
url,
1010
});

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"forceConsistentCasingInFileNames": true,
1111
"noEmit": true,
1212
"esModuleInterop": true,
13-
"module": "preserve",
13+
"module": "esnext",
1414
"moduleResolution": "bundler",
1515
"resolveJsonModule": true,
1616
"isolatedModules": true,

0 commit comments

Comments
 (0)