refactor: usePreference + update TS tooling (#2333)
This commit is contained in:
@@ -28,15 +28,6 @@ export enum PrefKey {
|
||||
AutoLightThemeIdentifier = 'autoLightThemeIdentifier',
|
||||
AutoDarkThemeIdentifier = 'autoDarkThemeIdentifier',
|
||||
NoteAddToParentFolders = 'noteAddToParentFolders',
|
||||
MobileSortNotesBy = 'mobileSortBy',
|
||||
MobileSortNotesReverse = 'mobileSortReverse',
|
||||
MobileNotesHideNotePreview = 'mobileHideNotePreview',
|
||||
MobileNotesHideDate = 'mobileHideDate',
|
||||
MobileNotesHideTags = 'mobileHideTags',
|
||||
MobileLastExportDate = 'mobileLastExportDate',
|
||||
MobileDoNotShowAgainUnsupportedEditors = 'mobileDoNotShowAgainUnsupportedEditors',
|
||||
MobileSelectedTagUuid = 'mobileSelectedTagUuid',
|
||||
MobileNotesHideEditorIcon = 'mobileHideEditorIcon',
|
||||
NewNoteTitleFormat = 'newNoteTitleFormat',
|
||||
CustomNoteTitleFormat = 'customNoteTitleFormat',
|
||||
UpdateSavingStatusIndicator = 'updateSavingStatusIndicator',
|
||||
@@ -102,15 +93,6 @@ export type PrefValue = {
|
||||
[PrefKey.AutoLightThemeIdentifier]: FeatureIdentifier | 'Default' | 'Dark'
|
||||
[PrefKey.AutoDarkThemeIdentifier]: FeatureIdentifier | 'Default' | 'Dark'
|
||||
[PrefKey.NoteAddToParentFolders]: boolean
|
||||
[PrefKey.MobileSortNotesBy]: CollectionSortProperty
|
||||
[PrefKey.MobileSortNotesReverse]: boolean
|
||||
[PrefKey.MobileNotesHideNotePreview]: boolean
|
||||
[PrefKey.MobileNotesHideDate]: boolean
|
||||
[PrefKey.MobileNotesHideTags]: boolean
|
||||
[PrefKey.MobileLastExportDate]: Date | undefined
|
||||
[PrefKey.MobileDoNotShowAgainUnsupportedEditors]: boolean
|
||||
[PrefKey.MobileSelectedTagUuid]: string | undefined
|
||||
[PrefKey.MobileNotesHideEditorIcon]: boolean
|
||||
[PrefKey.NewNoteTitleFormat]: NewNoteTitleFormat
|
||||
[PrefKey.CustomNoteTitleFormat]: string
|
||||
[PrefKey.EditorLineHeight]: EditorLineHeight
|
||||
|
||||
Reference in New Issue
Block a user