mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-04-26 14:27:22 +08:00
feat: 实现聊天记录合并功能
This commit is contained in:
16
electron/preload/index.d.ts
vendored
16
electron/preload/index.d.ts
vendored
@@ -19,6 +19,10 @@ import type {
|
||||
LaughAnalysis,
|
||||
MemeBattleAnalysis,
|
||||
CheckInAnalysis,
|
||||
FileParseInfo,
|
||||
ConflictCheckResult,
|
||||
MergeParams,
|
||||
MergeResult,
|
||||
} from '../../src/types/chat'
|
||||
|
||||
interface TimeFilter {
|
||||
@@ -63,6 +67,15 @@ interface Api {
|
||||
send: (channel: string, data?: unknown) => void
|
||||
receive: (channel: string, func: (...args: unknown[]) => void) => void
|
||||
removeListener: (channel: string, func: (...args: unknown[]) => void) => void
|
||||
dialog: {
|
||||
showOpenDialog: (options: Electron.OpenDialogOptions) => Promise<Electron.OpenDialogReturnValue>
|
||||
}
|
||||
}
|
||||
|
||||
interface MergeApi {
|
||||
parseFileInfo: (filePath: string) => Promise<FileParseInfo>
|
||||
checkConflicts: (filePaths: string[]) => Promise<ConflictCheckResult>
|
||||
mergeFiles: (params: MergeParams) => Promise<MergeResult>
|
||||
}
|
||||
|
||||
declare global {
|
||||
@@ -70,7 +83,8 @@ declare global {
|
||||
electron: ElectronAPI
|
||||
api: Api
|
||||
chatApi: ChatApi
|
||||
mergeApi: MergeApi
|
||||
}
|
||||
}
|
||||
|
||||
export { ChatApi, Api }
|
||||
export { ChatApi, Api, MergeApi }
|
||||
|
||||
Reference in New Issue
Block a user