This commit is contained in:
2026-08-18 14:37:08 +02:00
parent f115a86291
commit bca54910be
3 changed files with 18 additions and 6 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
import { invoke } from "@tauri-apps/api/core";
type KnownServer = {
export interface KnownServer {
name: string;
description: string;
publicKey: string;
hostname: string;
isWss: boolean;
};
}
export async function saveServerList(servers: KnownServer[]): Promise<void> {
await invoke("save_server_list", { servers });