1.修复打包报错
This commit is contained in:
@@ -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<
|
||||
|
||||
Reference in New Issue
Block a user