Improve Redux types part 1 (#25872)
* Always dispatch thunk actions instead of calling them * Properly dispatch actions in SwitchChannelProvider * Fix tests relying on bad types * Properly pass actions into ManageTokens * Make other logic changes to support new types * Do the big type migrations without any logic changes * Revert "Properly dispatch actions in SwitchChannelProvider" This reverts commit 28c8c7af2ef324c6814087a81baca66c60477daa. * Revert "Revert "Properly dispatch actions in SwitchChannelProvider"" This reverts commit 47115c5217ae90547040e7b7de32979a33f0845b.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0a4e9eeb92
Коммит
978f335925
@@ -10,7 +10,7 @@ import type {AdminConfig, EnvironmentConfig} from '@mattermost/types/config';
|
||||
import type {Role} from '@mattermost/types/roles';
|
||||
import type {DeepPartial} from '@mattermost/types/utilities';
|
||||
|
||||
import type {ActionFunc} from 'mattermost-redux/types/actions';
|
||||
import type {ActionResult} from 'mattermost-redux/types/actions';
|
||||
|
||||
import SchemaAdminSettings from 'components/admin_console/schema_admin_settings';
|
||||
import AnnouncementBarController from 'components/announcement_bar';
|
||||
@@ -45,7 +45,7 @@ type ExtraProps = {
|
||||
setNavigationBlocked?: () => void;
|
||||
roles?: Record<string, Role>;
|
||||
editRole?: (role: Role) => void;
|
||||
updateConfig?: (config: AdminConfig) => ActionFunc;
|
||||
updateConfig?: (config: AdminConfig) => Promise<ActionResult>;
|
||||
cloud: CloudState;
|
||||
isCurrentUserSystemAdmin: boolean;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user