mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
* feat: 完成windows与linux下的Titlebar * update * fix: win titlebar * 优化部分api命名 * 视觉效果更好的标题间距 * fix: Linux title没有居中 * update * fix: Main style * 向renderer公开IpcRenderer.on * update
19 lines
370 B
TypeScript
19 lines
370 B
TypeScript
export {}
|
|
|
|
declare global {
|
|
interface Window {
|
|
// Expose some Api through preload script
|
|
ipcRenderer?: import('electron').IpcRenderer
|
|
env?: {
|
|
isElectron: boolean
|
|
isEnableTitlebar: boolean
|
|
isLinux: boolean
|
|
isMac: boolean
|
|
isWin: boolean
|
|
}
|
|
}
|
|
}
|
|
|
|
declare module 'valtio' {
|
|
function useSnapshot<T extends object>(p: T): T
|
|
}
|