Improve Redux types part 6/Remove GenericAction (#26005)

* Remove remaining usage of GenericAction in mapDispatchToProps

* Remove usage of GenericAction when testing initial state

* Remove usage of GenericAction from reducers

* Remove GenericAction
Этот коммит содержится в:
Harrison Healey
2024-01-24 11:33:59 -05:00
коммит произвёл GitHub
родитель 8e165c7685
Коммит 6c0900f1be
147 изменённых файлов: 525 добавлений и 616 удалений

Просмотреть файл

@@ -17,7 +17,6 @@ import {getExternalBotAccounts} from 'mattermost-redux/selectors/entities/bots';
import {getConfig} from 'mattermost-redux/selectors/entities/general';
import {getAppsBotIDs} from 'mattermost-redux/selectors/entities/integrations';
import * as UserSelectors from 'mattermost-redux/selectors/entities/users';
import type {GenericAction} from 'mattermost-redux/types/actions';
import Bots from './bots';
@@ -48,7 +47,7 @@ function mapStateToProps(state: GlobalState) {
};
}
function mapDispatchToProps(dispatch: Dispatch<GenericAction>) {
function mapDispatchToProps(dispatch: Dispatch) {
return {
actions: bindActionCreators({
fetchAppsBotIDs,