-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathenv.d.ts
More file actions
31 lines (26 loc) · 1.1 KB
/
Copy pathenv.d.ts
File metadata and controls
31 lines (26 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/// <reference types="vite/client" />
/// <reference types="@nuxt/icon/client" />
declare const __IS_ELECTRON__: boolean | undefined
declare const __IS_WEB_WASM__: boolean | undefined
declare module '*.vue' {
import type { DefineComponent } from 'vue'
// 使用 Record<string, never> 避免 {} 被 ESLint 判定为过宽类型。
const component: DefineComponent<Record<string, never>, Record<string, never>, unknown>
export default component
}
import type { FileParseInfo, ConflictCheckResult, MergeParams, MergeResult } from './types/format'
interface MergeApi {
exportSessionsToTempFiles: (
sessionIds: string[]
) => Promise<{ success: boolean; tempFiles: string[]; error?: string }>
cleanupTempExportFiles: (filePaths: string[]) => Promise<{ success: boolean; error?: string }>
parseFileInfo: (filePath: string) => Promise<FileParseInfo>
checkConflicts: (filePaths: string[]) => Promise<ConflictCheckResult>
mergeFiles: (params: MergeParams) => Promise<MergeResult>
clearCache: (filePath?: string) => Promise<boolean>
}
declare global {
interface Window {
mergeApi: MergeApi
}
}