docs: Add missed import in code sample

This commit is contained in:
Alex Kozack
2022-12-13 18:07:15 +02:00
committed by GitHub
parent 3db1100c87
commit 00da42d77e

View File

@@ -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>({