mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 11:20:07 +08:00
* refactor(preload): remove unused index.d.ts file and export WindowApiType from index.ts * fix: type def errors in original index.ts file
12 lines
277 B
TypeScript
12 lines
277 B
TypeScript
import { ElectronAPI } from '@electron-toolkit/preload'
|
|
|
|
import type { WindowApiType } from './index'
|
|
|
|
/** you don't need to declare this in your code, it's automatically generated */
|
|
declare global {
|
|
interface Window {
|
|
electron: ElectronAPI
|
|
api: WindowApiType
|
|
}
|
|
}
|