mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-14 20:08:48 +08:00
✨ Feature: add global value for PicGo get GUI_VERSION & CORE_VERSION
This commit is contained in:
10
src/universal/types/electron.d.ts
vendored
10
src/universal/types/electron.d.ts
vendored
@@ -20,3 +20,13 @@ declare interface IWindowManager {
|
||||
deleteById: (id: number) => void
|
||||
getAvailableWindow: () => BrowserWindow
|
||||
}
|
||||
|
||||
// https://stackoverflow.com/questions/35074713/extending-typescript-global-object-in-node-js/44387594#44387594
|
||||
declare global {
|
||||
namespace NodeJS {
|
||||
interface Global {
|
||||
PICGO_GUI_VERSION: string
|
||||
PICGO_CORE_VERSION: string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user