YesPlayMusic/src/renderer/global.d.ts
memorydream 1444bbefa2
feat: 完成windows与linux下的Titlebar (#1482)
* feat: 完成windows与linux下的Titlebar

* update

* fix: win titlebar

* 优化部分api命名

* 视觉效果更好的标题间距

* fix: Linux title没有居中

* update

* fix: Main style

* 向renderer公开IpcRenderer.on

* update
2022-04-09 00:19:58 +08:00

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
}