mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
Merge pull request #53 from cawa-93/patch-1
docs: Add missed import in code sample
This commit is contained in:
@@ -107,6 +107,7 @@ Create a strongly-typed plugin using your API's type signature.
|
||||
```ts [plugins/client.ts]
|
||||
import { httpBatchLink, createTRPCProxyClient } from '@trpc/client'
|
||||
import type { AppRouter } from '@/server/trpc/routers'
|
||||
import { FetchError } from 'ofetch'
|
||||
|
||||
export default defineNuxtPlugin(() => {
|
||||
const client = createTRPCProxyClient<AppRouter>({
|
||||
|
||||
Reference in New Issue
Block a user