fix(electron): use named Schema import from electron-store v8+

This commit is contained in:
DrSmoothl
2026-03-03 01:19:36 +08:00
parent 46babf7294
commit 4561cd91b8

View File

@@ -1,6 +1,6 @@
import { randomUUID } from 'crypto' import { randomUUID } from 'crypto'
import Store from 'electron-store' import Store, { type Schema } from 'electron-store'
/** /**
* Backend connection data model * Backend connection data model
@@ -31,7 +31,7 @@ export interface AppSettings {
/** /**
* JSON Schema for validating store contents * JSON Schema for validating store contents
*/ */
const SCHEMA: Store.Schema<AppSettings> = { const SCHEMA: Schema<AppSettings> = {
backends: { backends: {
type: 'array', type: 'array',
items: { items: {