background.ts: Introduce types for redux initialState
This commit is contained in:
parent
3673b6d101
commit
4763831d3e
42 changed files with 315 additions and 238 deletions
|
@ -200,12 +200,12 @@ function selectDraftEmojiToBeReplaced(
|
|||
|
||||
// Reducer
|
||||
|
||||
export function getInitialState(): PreferredReactionsStateType {
|
||||
export function getEmptyState(): PreferredReactionsStateType {
|
||||
return {};
|
||||
}
|
||||
|
||||
export function reducer(
|
||||
state: Readonly<PreferredReactionsStateType> = getInitialState(),
|
||||
state: Readonly<PreferredReactionsStateType> = getEmptyState(),
|
||||
action: Readonly<
|
||||
| CancelCustomizePreferredReactionsModalActionType
|
||||
| DeselectDraftEmojiActionType
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue