Reorganize redux types to avoid unnecessary type casting

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2021-07-21 22:52:49 +02:00
parent a221ce4255
commit 6a43d0c5fb
27 changed files with 113 additions and 153 deletions

View file

@ -18,7 +18,7 @@ import { EditorConfig } from './editor/types'
import { NoteDetailsReducer } from './note-details/reducers'
import { NoteDetails } from './note-details/types'
import { UserReducer } from './user/reducers'
import { MaybeUserState } from './user/types'
import { OptionalUserState } from './user/types'
import { UiNotificationState } from './ui-notifications/types'
import { UiNotificationReducer } from './ui-notifications/reducers'
import { HistoryEntry } from './history/types'
@ -27,7 +27,7 @@ import { RendererStatusReducer } from './renderer-status/reducers'
import { RendererStatus } from './renderer-status/types'
export interface ApplicationState {
user: MaybeUserState
user: OptionalUserState
config: Config
banner: BannerState
history: HistoryEntry[]