fix: 修复handleBatchUpdate函数类型定义不匹配问题
- 更新UseAccountsReturn接口中handleBatchUpdate的类型签名,添加可选的targetIds参数 - 更新BatchOperationsProps接口中onBatchUpdate的类型定义以匹配实际函数签名 - 修复response.data可能为null的TypeScript严格检查错误 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -13,7 +13,7 @@ interface BatchOperationsProps {
|
||||
selectedCount: number;
|
||||
selectedAccounts: Account[];
|
||||
stats: StatsOverview | null;
|
||||
onBatchUpdate: (payload: Partial<Pick<Account, 'status' | 'ownerId' | 'notes' | 'platform'>>) => Promise<void>;
|
||||
onBatchUpdate: (payload: Partial<Pick<Account, 'status' | 'ownerId' | 'notes' | 'platform'>>, targetIds?: number[]) => Promise<void>;
|
||||
onBatchDelete: () => Promise<void>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user