You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
426 B
17 lines
426 B
import Store from "electron-store"
|
|
|
|
interface StoreSchema {
|
|
// Empty for now, we can add other store items here later
|
|
}
|
|
|
|
const store = new Store<StoreSchema>({
|
|
defaults: {},
|
|
encryptionKey: "your-encryption-key"
|
|
}) as Store<StoreSchema> & {
|
|
store: StoreSchema
|
|
get: <K extends keyof StoreSchema>(key: K) => StoreSchema[K]
|
|
set: <K extends keyof StoreSchema>(key: K, value: StoreSchema[K]) => void
|
|
}
|
|
|
|
export { store }
|