mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-23 06:51:10 +08:00
style: 代码格式优化
This commit is contained in:
@@ -68,7 +68,9 @@ export const apiServerApi = {
|
||||
return ipcRenderer.invoke('api:getDataSources')
|
||||
},
|
||||
|
||||
addDataSource: (partial: Omit<DataSource, 'id' | 'createdAt' | 'lastPullAt' | 'lastStatus' | 'lastError' | 'lastNewMessages'>): Promise<DataSource> => {
|
||||
addDataSource: (
|
||||
partial: Omit<DataSource, 'id' | 'createdAt' | 'lastPullAt' | 'lastStatus' | 'lastError' | 'lastNewMessages'>
|
||||
): Promise<DataSource> => {
|
||||
return ipcRenderer.invoke('api:addDataSource', partial)
|
||||
},
|
||||
|
||||
|
||||
Vendored
+3
-1
@@ -916,7 +916,9 @@ interface ApiServerApi {
|
||||
regenerateToken: () => Promise<ApiServerConfig>
|
||||
onStartupError: (callback: (data: { error: string }) => void) => () => void
|
||||
getDataSources: () => Promise<DataSource[]>
|
||||
addDataSource: (partial: Omit<DataSource, 'id' | 'createdAt' | 'lastPullAt' | 'lastStatus' | 'lastError' | 'lastNewMessages'>) => Promise<DataSource>
|
||||
addDataSource: (
|
||||
partial: Omit<DataSource, 'id' | 'createdAt' | 'lastPullAt' | 'lastStatus' | 'lastError' | 'lastNewMessages'>
|
||||
) => Promise<DataSource>
|
||||
updateDataSource: (id: string, updates: Partial<DataSource>) => Promise<DataSource | null>
|
||||
deleteDataSource: (id: string) => Promise<boolean>
|
||||
triggerPull: (id: string) => Promise<{ success: boolean; error?: string }>
|
||||
|
||||
Reference in New Issue
Block a user