From 4561cd91b89eb89b38401958685835cfaaa16360 Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Tue, 3 Mar 2026 01:19:36 +0800 Subject: [PATCH] fix(electron): use named Schema import from electron-store v8+ --- dashboard/electron/main/store.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/electron/main/store.ts b/dashboard/electron/main/store.ts index 65a810df..73535c91 100644 --- a/dashboard/electron/main/store.ts +++ b/dashboard/electron/main/store.ts @@ -1,6 +1,6 @@ import { randomUUID } from 'crypto' -import Store from 'electron-store' +import Store, { type Schema } from 'electron-store' /** * Backend connection data model @@ -31,7 +31,7 @@ export interface AppSettings { /** * JSON Schema for validating store contents */ -const SCHEMA: Store.Schema = { +const SCHEMA: Schema = { backends: { type: 'array', items: {