Skip to content

Commit 4062d77

Browse files
authored
chore: Added missing trpc import in example (#567)
I was just trying to run the example and had the type error, thought I'd submit the fix upstream as well.
1 parent de8a836 commit 4062d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/blog/integrate-trpc-with-elysia.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ And in the Elysia server
152152
```typescript
153153
import { Elysia } from 'elysia'
154154
import { cors } from '@elysiajs/cors'
155-
import '@elysiajs/trpc'
155+
import { trpc } '@elysiajs/trpc'
156156

157157
import { router, createContext } from './trpc' // [!code ++]
158158

0 commit comments

Comments
 (0)