Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/kasper9n/ferrum. Music library app for Mac, Linux and Windows ferrum.kasper.space
Something went wrong. Try again.
12345678910111213141516171819202122232425import type { IpcRenderer, IpcFunctions } from '$electron/typed_ipc'import type Addon from 'ferrum-addon'const electron = window.require('electron')
export const ipc_renderer = electron.ipcRenderer as IpcRenderer
export const ipc_listen: IpcFunctions['ipcListen'] = (channel, listener) => { ipc_renderer.on(channel, listener) return () => { ipc_renderer.removeListener(channel, listener) }}
declare global { interface Window { addon: typeof Addon is_dev: boolean local_data_path?: string library_path?: string is_mac: boolean is_windows: boolean get_file_path: (file: File) => string }}