Closed mdruuu closed 10 months ago
Hi,
I am wondering why the api type is set as 'unknown' vs electron being ElectronAPI?
import { ElectronAPI } from '@electron-toolkit/preload'
declare global { interface Window { electron: ElectronAPI api: unknown } }
Thank you
create-electron
n/a
No response
You can define specific types according to your own module.
Clear and concise description of the problem
Hi,
I am wondering why the api type is set as 'unknown' vs electron being ElectronAPI?
import { ElectronAPI } from '@electron-toolkit/preload'
declare global { interface Window { electron: ElectronAPI api: unknown } }
Thank you
Used Scaffolding
create-electron
Suggested solution
n/a
Alternative
No response
Additional context
No response
Validations