mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: infer combined reducer state types (#39118)
This commit is contained in:
@@ -1,49 +1,8 @@
|
||||
import { ThunkAction, ThunkDispatch as GenericThunkDispatch } from 'redux-thunk';
|
||||
import { Action, PayloadAction } from '@reduxjs/toolkit';
|
||||
import { NavIndex } from '@grafana/data';
|
||||
import { AlertRulesState, NotificationChannelState } from './alerting';
|
||||
import { TeamsState, TeamState } from './teams';
|
||||
import { FolderState } from './folders';
|
||||
import { DashboardState } from './dashboard';
|
||||
import { DataSourceSettingsState, DataSourcesState } from './datasources';
|
||||
import { ExploreState } from './explore';
|
||||
import { UserAdminState, UserListAdminState, UsersState } from './user';
|
||||
import { OrganizationState } from './organization';
|
||||
import { AppNotificationsState } from './appNotifications';
|
||||
import { PluginsState } from './plugins';
|
||||
import { LdapState } from './ldap';
|
||||
import { PanelEditorState } from '../features/dashboard/components/PanelEditor/state/reducers';
|
||||
import { ApiKeysState } from './apiKeys';
|
||||
import { TemplatingState } from '../features/variables/state/reducers';
|
||||
import { ImportDashboardState } from '../features/manage-dashboards/state/reducers';
|
||||
import { UserState } from 'app/features/profile/state/reducers';
|
||||
import { UnifiedAlertingState } from 'app/features/alerting/unified/state/reducers';
|
||||
import type { createRootReducer } from 'app/core/reducers/root';
|
||||
|
||||
export interface StoreState {
|
||||
navIndex: NavIndex;
|
||||
alertRules: AlertRulesState;
|
||||
teams: TeamsState;
|
||||
team: TeamState;
|
||||
folder: FolderState;
|
||||
dashboard: DashboardState;
|
||||
panelEditor: PanelEditorState;
|
||||
dataSources: DataSourcesState;
|
||||
dataSourceSettings: DataSourceSettingsState;
|
||||
explore: ExploreState;
|
||||
users: UsersState;
|
||||
organization: OrganizationState;
|
||||
appNotifications: AppNotificationsState;
|
||||
user: UserState;
|
||||
plugins: PluginsState;
|
||||
ldap: LdapState;
|
||||
apiKeys: ApiKeysState;
|
||||
userAdmin: UserAdminState;
|
||||
userListAdmin: UserListAdminState;
|
||||
templating: TemplatingState;
|
||||
importDashboard: ImportDashboardState;
|
||||
notificationChannel: NotificationChannelState;
|
||||
unifiedAlerting: UnifiedAlertingState;
|
||||
}
|
||||
export type StoreState = ReturnType<ReturnType<typeof createRootReducer>>;
|
||||
|
||||
/*
|
||||
* Utility type to get strongly types thunks
|
||||
|
||||
Reference in New Issue
Block a user