Merge pull request #53 from cawa-93/patch-1

docs: Add missed import in code sample
This commit is contained in:
Robert Soriano
2022-12-14 23:21:48 -08:00
committed by GitHub

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