mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 20:19:33 +01:00
docs: fix AppRouter import in simple usage
This commit is contained in:
@@ -78,7 +78,7 @@ Create a strongly-typed plugin using your API's type signature.
|
||||
|
||||
```ts [plugins/client.ts]
|
||||
import { createTRPCNuxtClient, httpBatchLink } from 'trpc-nuxt/client'
|
||||
import type { AppRouter } from '~/server/trpc/routers'
|
||||
import type { AppRouter } from '~/server/api/trpc/[trpc]'
|
||||
|
||||
export default defineNuxtPlugin(() => {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user