d4b0272fe7
* style(linter): enable consistent-type-imports rule in typescript * chore: add biome to lint script for improved code formatting * chore: add oxlint-specific lint script for faster linting * refactor: use type-only imports for better type safety and clarity
12 lines
282 B
TypeScript
12 lines
282 B
TypeScript
import type { 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
|
|
}
|
|
}
|