mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 10:40:07 +08:00
20 lines
495 B
TypeScript
20 lines
495 B
TypeScript
import { ElectronAPI } from '@electron-toolkit/preload'
|
|
|
|
declare global {
|
|
interface Window {
|
|
electron: ElectronAPI
|
|
api: {
|
|
getAppInfo: () => Promise<{
|
|
version: string
|
|
isPackaged: boolean
|
|
appPath: string
|
|
}>
|
|
checkForUpdate: () => void
|
|
openWebsite: (url: string) => void
|
|
setProxy: (proxy: string | undefined) => void
|
|
saveFile: (path: string, content: string) => void
|
|
setTheme: (theme: 'light' | 'dark') => void
|
|
}
|
|
}
|
|
}
|