读取 git 仓库数据(如有)并显示
This commit is contained in:
13
src/preload/index.d.ts
vendored
13
src/preload/index.d.ts
vendored
@@ -1,13 +1,13 @@
|
||||
import { ElectronAPI } from '@electron-toolkit/preload'
|
||||
import { settingsDto, checkIDEsResultDto } from '@my-type/settings'
|
||||
import { ElectronAPI } from "@electron-toolkit/preload";
|
||||
import { settingsDto, checkIDEsResultDto } from "@my-type/settings";
|
||||
import { checkIDEsVersionDto } from "../my-type/settings";
|
||||
import { IdeProjectsDto } from "../my-type/ide-projects";
|
||||
import { GitProjectDto, IdeProjectsDto } from "../my-type/ide-projects";
|
||||
|
||||
// 此处只有签名
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
electron: ElectronAPI
|
||||
electron: ElectronAPI;
|
||||
api: {
|
||||
_saveSettings: (settings: settingsDto) => Promise<boolean>
|
||||
_updateSettings: () => Promise<settingsDto>
|
||||
@@ -17,7 +17,7 @@ declare global {
|
||||
_maximize: () => Promise<void>
|
||||
_closeWindow: () => Promise<void>
|
||||
_exit: () => Promise<void>
|
||||
}
|
||||
};
|
||||
codeLaunchpad: {
|
||||
_getIDEs: () => Promise<checkIDEsResultDto>
|
||||
_checkIDEs: () => Promise<checkIDEsResultDto>
|
||||
@@ -26,6 +26,7 @@ declare global {
|
||||
_getVSCodeProjects: () => Promise<IdeProjectsDto>
|
||||
_getJetBrainsProjects: () => Promise<IdeProjectsDto>
|
||||
_openProject: (ide: string, path: string) => Promise<boolean>
|
||||
}
|
||||
_getProjectGitInfo: (path: string) => Promise<GitProjectDto | null>
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user