mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2025-03-01 11:27:39 +08:00
32 lines
498 B
TypeScript
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
|