Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/guides/rpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export type AppType = typeof route
On the Client side, import `hc` and `AppType` first.

```ts
import { AppType } from '.'
import type { AppType } from '.'
import { hc } from 'hono/client'
```

Expand Down Expand Up @@ -388,7 +388,7 @@ You can also use a React Hook library such as [SWR](https://swr.vercel.app).
import useSWR from 'swr'
import { hc } from 'hono/client'
import type { InferRequestType } from 'hono/client'
import { AppType } from '../functions/api/[[route]]'
import type { AppType } from '../functions/api/[[route]]'

const App = () => {
const client = hc<AppType>('/api')
Expand Down