21 lines
440 B
TypeScript
21 lines
440 B
TypeScript
import { ElectronAPI } from '@electron-toolkit/preload'
|
|
import type api from './api'
|
|
|
|
declare global {
|
|
interface Window {
|
|
electron: ElectronAPI
|
|
api: typeof api,
|
|
version: string,
|
|
platform: string,
|
|
appPath: string,
|
|
arch: string,
|
|
shell: Electron.Shell;
|
|
downloadsPath: string;
|
|
deviceName: string;
|
|
deviceId: string;
|
|
mediaApi: {
|
|
getSoundUrl: (fileName: string) => Promise<string>;
|
|
};
|
|
}
|
|
}
|