refactor: 更新客户端与路由类型命名以保持一致性

- 更新客户端类型引用,将 RouterClient 替换为 APIRouterClient 以匹配路由定义的最新命名。
- 更新类型导出名称以使用更清晰的命名并移除冗余的别名。
This commit is contained in:
2026-01-18 02:30:23 +08:00
parent 46c370a5a8
commit 89b94a9926
2 changed files with 5 additions and 5 deletions

View File

@@ -1,8 +1,8 @@
import type { RouterClient as ORPCRouterClient } from '@orpc/server'
import type { RouterClient } from '@orpc/server'
import * as todo from './handlers/todo'
export const router = {
todo,
}
export type RouterClient = ORPCRouterClient<typeof router>
export type APIRouterClient = RouterClient<typeof router>