refactor: 移除废弃的 Context 类型并优化类型定义

- 移除 Context 类型导入并添加空对象类型定义以兼容当前上下文需求
- 移除已废弃的 Context 类型定义并清理注释代码
This commit is contained in:
2026-01-22 16:19:33 +08:00
parent 7beb911efb
commit 7c8452c731
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,7 @@
import { implement } from '@orpc/server'
import { contract } from './contract'
import type { Context } from './types'
// biome-ignore lint/complexity/noBannedTypes: 暂无 context
type Context = {}
export const os = implement(contract).$context<Context>()

View File

@@ -5,8 +5,6 @@ import type {
} from '@orpc/contract'
import type { contract } from './contract'
// biome-ignore lint/complexity/noBannedTypes: 暂无 context
export type Context = {}
export type Contract = typeof contract
export type RouterClient = ContractRouterClient<Contract>
export type RouterInputs = InferContractRouterInputs<Contract>