Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor(types): use EditorSettings
  • Loading branch information
antonreshetov committed Apr 19, 2022
commit e46409c2d60bc16748929e666de8a6fd022404e3
15 changes: 3 additions & 12 deletions src/shared/types/main/store.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { EditorSettings } from '../renderer/store/app'

export interface AppStore {
bounds: object
selectedFolderId?: string
Expand All @@ -10,20 +12,9 @@ export interface AppStore {
notifySupport: boolean
}

interface Editor {
fontFamily: string
fontSize: number
showInvisibles: boolean
tabSize: number
wrap: string
trailingComma: 'all' | 'none' | 'es5'
semi: boolean
singleQuote: boolean
theme: string
}
export interface PreferencesStore {
storagePath: string
backupPath: string
editor: Editor
editor: EditorSettings
theme: string
}