From f4844f05ef8a3f9419f1f4fb298437d936f65179 Mon Sep 17 00:00:00 2001 From: Enchan Date: Tue, 11 Mar 2025 13:42:37 +0900 Subject: [PATCH] fix(docs): modify import statement to type-import --- docs/guides/rpc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/rpc.md b/docs/guides/rpc.md index 0ecad5ff..51592fb7 100644 --- a/docs/guides/rpc.md +++ b/docs/guides/rpc.md @@ -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' ``` @@ -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('/api')