refactor: rename global API from electronAPI to api and update references

This commit is contained in:
Jason
2025-08-25 10:30:45 +08:00
parent d3adfc480d
commit d78013562c
5 changed files with 15 additions and 15 deletions

2
src/vite-env.d.ts vendored
View File

@@ -15,7 +15,7 @@ interface ConfigStatus {
declare global {
interface Window {
electronAPI: {
api: {
getProviders: () => Promise<Record<string, Provider>>;
getCurrentProvider: () => Promise<string>;
addProvider: (provider: Provider) => Promise<boolean>;