2022-08-03 23:48:39 +08:00

32 lines
498 B
TypeScript

import Store from 'electron-store'
export interface TypedElectronStore {
window: {
width: number
height: number
x?: number
y?: number
}
// settings: State['settings']
airplay: {
credentials: {
[key: string]: string
}
}
}
const store = new Store<TypedElectronStore>({
defaults: {
window: {
width: 1440,
height: 1024,
},
// settings: initialState.settings,
airplay: {
credentials: {},
},
},
})
export default store