Skip to content

Commit

Permalink
feat: add reducers naming types
Browse files Browse the repository at this point in the history
  • Loading branch information
TomatoVan committed Mar 16, 2024
1 parent 0896ed8 commit 443d526
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { ReactNode, useEffect } from 'react';
import { useDispatch, useStore } from 'react-redux';
import { Reducer } from '@reduxjs/toolkit';
import {
ReduxStoreWithManager,
ReduxStoreWithManager, StateSchema,
StateSchemaKey,
} from '@/app/providers/StoreProvider';

export type ReducersList = {
[name in StateSchemaKey]?: Reducer;
[name in StateSchemaKey]?: Reducer<NonNullable<StateSchema[name]>>;
};

type ReducersListEntry = [StateSchemaKey, Reducer]
Expand Down

0 comments on commit 443d526

Please sign in to comment.