fix(electron): use named Schema import from electron-store v8+
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user