ref: Improve reducers TS (#12123)

This commit is contained in:
Robert Pintilii
2022-09-05 12:05:07 +03:00
committed by GitHub
parent f18f8c1061
commit 271ea8315b
80 changed files with 177 additions and 156 deletions

View File

@@ -45,8 +45,8 @@ const STORE_NAME = 'features/recording';
/**
* Reduces the Redux actions of the feature features/recording.
*/
ReducerRegistry.register(STORE_NAME,
(state: IRecordingState = DEFAULT_STATE, action) => {
ReducerRegistry.register<IRecordingState>(STORE_NAME,
(state = DEFAULT_STATE, action): IRecordingState => {
switch (action.type) {
case CLEAR_RECORDING_SESSIONS: