mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 14:18:03 +00:00
chore: 用esbuild代替vite来打包main
This commit is contained in:
parent
b4590c3c34
commit
c4219afd3d
152 changed files with 669 additions and 747 deletions
13
src/renderer/global.d.ts
vendored
Normal file
13
src/renderer/global.d.ts
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
export {}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
// Expose some Api through preload script
|
||||
ipcRenderer?: import('electron').IpcRenderer
|
||||
isElectron?: boolean
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'valtio' {
|
||||
function useSnapshot<T extends object>(p: T): T
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue