1.修复打包报错

This commit is contained in:
2026-05-19 12:25:16 +08:00
parent 1f25280dfd
commit 1b65e25f11

View File

@@ -40,7 +40,11 @@ import { bindChannelDeptToSearchParams, useInjectedChannelDept, getChannelDeptRe
// 类型推导工具类型
type InferApiParams<T> = T extends (params: infer P) => any ? P : never
type InferApiResponse<T> = T extends (params: any) => Promise<infer R> ? R : never
type InferRecordType<T> = T extends Api.Common.PaginatedResponse<infer U> ? U : never
type InferRecordType<T> = T extends Api.Common.PaginatedResponse<infer U>
? U
: T extends Api.Common.ApiPage<infer U>
? U
: never
// 优化的配置接口 - 支持自动类型推导
export interface UseTableConfig<