mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
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]
|
```ts [plugins/client.ts]
|
||||||
import { httpBatchLink, createTRPCProxyClient } from '@trpc/client'
|
import { httpBatchLink, createTRPCProxyClient } from '@trpc/client'
|
||||||
import type { AppRouter } from '@/server/trpc/routers'
|
import type { AppRouter } from '@/server/trpc/routers'
|
||||||
|
import { FetchError } from 'ofetch'
|
||||||
|
|
||||||
export default defineNuxtPlugin(() => {
|
export default defineNuxtPlugin(() => {
|
||||||
const client = createTRPCProxyClient<AppRouter>({
|
const client = createTRPCProxyClient<AppRouter>({
|
||||||
|
|||||||
Reference in New Issue
Block a user