Skip to content

Commit 8e2c668

Browse files
authored
fix(docs): modify import statement to type-import (#622)
1 parent dbcc06a commit 8e2c668

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/guides/rpc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export type AppType = typeof route
5050
On the Client side, import `hc` and `AppType` first.
5151
5252
```ts
53-
import { AppType } from '.'
53+
import type { AppType } from '.'
5454
import { hc } from 'hono/client'
5555
```
5656

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

414414
const App = () => {
415415
const client = hc<AppType>('/api')

0 commit comments

Comments
 (0)