polishing
This commit is contained in:
9
frontend/src/vite-env.d.ts
vendored
9
frontend/src/vite-env.d.ts
vendored
@ -8,6 +8,13 @@ interface ImportMeta {
|
||||
readonly env: ImportMetaEnv;
|
||||
}
|
||||
|
||||
interface ModelInfo {
|
||||
name: string;
|
||||
path: string;
|
||||
size_bytes: number;
|
||||
kind: string;
|
||||
}
|
||||
|
||||
interface DesktopAPI {
|
||||
openFile: (options?: Record<string, unknown>) => Promise<string | null>;
|
||||
saveFile: (options?: Record<string, unknown>) => Promise<string | null>;
|
||||
@ -24,6 +31,8 @@ interface DesktopAPI {
|
||||
getAppStatus: () => Promise<any>;
|
||||
deactivateLicense: () => Promise<void>;
|
||||
hasLicenseFeature: (feature: string) => Promise<boolean>;
|
||||
listModels: () => Promise<ModelInfo[]>;
|
||||
deleteModel: (path: string) => Promise<void>;
|
||||
}
|
||||
|
||||
interface Window {
|
||||
|
||||
Reference in New Issue
Block a user