cherry-studio/src/preload/preload.d.ts
fullex 6ba1e898c2 refactor: simplify window.api definition (#5412)
* refactor(preload): remove unused index.d.ts file and export WindowApiType from index.ts

* fix: type def errors in original index.ts file
2025-04-28 09:02:14 +08:00

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
}
}