mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 07:34:42 -04:00
Reorganize redux types to avoid unnecessary type casting
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
a221ce4255
commit
6a43d0c5fb
27 changed files with 113 additions and 153 deletions
|
@ -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[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue