Files
cc-switch/src/types.ts

19 lines
519 B
TypeScript
Raw Normal View History

2025-08-04 22:16:26 +08:00
export interface Provider {
id: string;
name: string;
settingsConfig: Record<string, any>; // 应用配置对象Claude 为 settings.jsonCodex 为 { auth, config }
websiteUrl?: string;
createdAt?: number; // 添加时间戳(毫秒)
2025-08-04 22:16:26 +08:00
}
export interface AppConfig {
providers: Record<string, Provider>;
current: string;
2025-08-04 22:16:26 +08:00
}
// 应用设置类型(用于 SettingsModal 与 Tauri API
export interface Settings {
// 是否在系统托盘macOS 菜单栏)显示图标
showInTray: boolean;
}