mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
fix: bugs
fix: bugs
This commit is contained in:
parent
1444bbefa2
commit
70d1de0e0f
62 changed files with 368 additions and 284 deletions
11
src/renderer/global.d.ts
vendored
11
src/renderer/global.d.ts
vendored
|
|
@ -1,9 +1,18 @@
|
|||
import { IpcChannels } from '@/main/IpcChannelsName'
|
||||
|
||||
export {}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
// Expose some Api through preload script
|
||||
ipcRenderer?: import('electron').IpcRenderer
|
||||
ipcRenderer?: {
|
||||
sendSync: (channel: IpcChannels, ...args: any[]) => any
|
||||
send: (channel: IpcChannels, ...args: any[]) => void
|
||||
on: (
|
||||
channel: IpcChannels,
|
||||
listener: (event: Electron.IpcRendererEvent, ...args: any[]) => void
|
||||
) => void
|
||||
}
|
||||
env?: {
|
||||
isElectron: boolean
|
||||
isEnableTitlebar: boolean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue